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

  1. class ACTION_WaitForEvent extends LatentScriptedAction;
  2.  
  3. var(Action) name ExternalEvent;    //tag to give controller (to affect triggering)
  4. var TriggeredCondition T;
  5.  
  6. function bool InitActionFor(ScriptedController C)
  7. {
  8.     if ( T == None )
  9.         ForEach C.AllActors(class'TriggeredCondition',T,ExternalEvent)
  10.             break;
  11.  
  12.     if ( (T != None) && T.bEnabled )
  13.         return false;
  14.     
  15.     C.CurrentAction = self;
  16.     C.Tag = ExternalEvent;
  17.     return true;
  18. }
  19.  
  20. function bool CompleteWhenTriggered()
  21. {
  22.     return true;
  23. }
  24.  
  25. function string GetActionString()
  26. {
  27.     return ActionString@ExternalEvent;
  28. }
  29.  
  30. defaultproperties
  31. {
  32.     ActionString="Wait for external event"
  33. }