home *** CD-ROM | disk | FTP | other *** search
/ 3D Game Programming All in One / 3D Game Programming All in One Disc.iso / 3D2E / RESOURCES / KOOB / common / client / mission.cs < prev    next >
Encoding:
Text File  |  2005-11-23  |  911 b   |  27 lines

  1. //-----------------------------------------------------------------------------
  2. // Torque Game Engine 
  3. // Copyright (C) GarageGames.com, Inc.
  4. //-----------------------------------------------------------------------------
  5.  
  6. //----------------------------------------------------------------------------
  7. // Mission start / end events sent from the server
  8. //----------------------------------------------------------------------------
  9.  
  10. function clientCmdMissionStart(%seq)
  11. {
  12.    // The client recieves a mission start right before
  13.    // being dropped into the game.
  14. }
  15.  
  16. function clientCmdMissionEnd(%seq)
  17. {
  18.    // Recieved when the current mission is ended.
  19.    alxStopAll();
  20.  
  21.    // Disable mission lighting if it's going, this is here
  22.    // in case the mission ends while we are in the process
  23.    // of loading it.
  24.    $lightingMission = false;
  25.    $sceneLighting::terminateLighting = true;
  26. }
  27.