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

  1. class ACTION_EndSection extends ScriptedAction;
  2.  
  3. function ProceedToNextAction(ScriptedController C)
  4. {
  5.     if ( C.IterationCounter > 0 )
  6.     {
  7.         C.ActionNum = C.IterationSectionStart;
  8.         C.IterationCounter--;
  9.     }
  10.     else
  11.     {
  12.         C.ActionNum += 1;
  13.         C.IterationSectionStart = -1;
  14.     }
  15. }
  16.  
  17. function bool EndsSection()
  18. {
  19.     return true;
  20. }
  21.  
  22. defaultproperties
  23. {
  24.     ActionString="end section"
  25. }