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

  1. class ACTION_IfCondition extends ScriptedAction;
  2.  
  3. var(Action) name TriggeredConditionTag;
  4. var TriggeredCondition T;
  5.  
  6. function ProceedToNextAction(ScriptedController C)
  7. {
  8.     if ( (T == None) && (TriggeredConditionTag != 'None') )
  9.         ForEach C.AllActors(class'TriggeredCondition',T,TriggeredConditionTag)
  10.             break;
  11.  
  12.     C.ActionNum += 1;
  13.     if ( !T.bEnabled )
  14.         ProceedToSectionEnd(C);
  15. }
  16.  
  17. function bool StartsSection()
  18. {
  19.     return true;
  20. }
  21.  
  22. function string GetActionString()
  23. {
  24.     return ActionString@T@TriggeredConditionTag;
  25. }
  26.  
  27. defaultproperties
  28. {
  29.     ActionString="If condition"
  30. }