home *** CD-ROM | disk | FTP | other *** search
/ Game Level Design / GLDesign.bin / Software / UnrealEngine2Runtime / UE2Runtime-22262001_Demo.exe / Gameplay / Classes / ACTION_WaitForPlayer.uc < prev    next >
Text File  |  2003-12-11  |  478b  |  29 lines

  1. class ACTION_WaitForPlayer extends LatentScriptedAction;
  2.  
  3. var(Action) float Distance;
  4.  
  5. function bool InitActionFor(ScriptedController C)
  6. {
  7.     if ( C.CheckIfNearPlayer(Distance) )
  8.         return false;
  9.     C.CurrentAction = self;
  10.     C.SetTimer(0.1,true);
  11.     return true;
  12. }
  13.  
  14. function float GetDistance()
  15. {
  16.     return Distance;
  17. }
  18.  
  19. function bool WaitForPlayer()
  20. {
  21.     return true;
  22. }
  23.  
  24. defaultproperties
  25. {
  26.     Distance=150
  27.     ActionString="Wait for player"
  28.     bValidForTrigger=false
  29. }