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

  1. class ACTION_ChangeScript extends ScriptedAction;
  2.  
  3. var(Action) name NextScriptTag;
  4. var ScriptedSequence NextScript;
  5.  
  6. function ScriptedSequence GetScript(ScriptedSequence S)
  7. {
  8.     if ( (NextScript == None) && (NextScriptTag != 'None') )
  9.     {
  10.         ForEach S.AllActors(class'ScriptedSequence', NextScript, NextScriptTag )
  11.             break;
  12.         if ( NextScript == None )
  13.         {
  14.             Warn("No Next script found for "$self$" in "$S);
  15.             return S;
  16.         }
  17.     }
  18.     return NextScript;
  19. }
  20.  
  21. function bool InitActionFor(ScriptedController C)
  22. {
  23.     C.bBroken = true;
  24.     return true;    
  25. }
  26.  
  27. defaultproperties
  28. {
  29.     ActionString="Change script"
  30.     bValidForTrigger=false
  31. }