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 >
Wrap
Text File
|
2003-12-11
|
642b
|
31 lines
class ACTION_ChangeScript extends ScriptedAction;
var(Action) name NextScriptTag;
var ScriptedSequence NextScript;
function ScriptedSequence GetScript(ScriptedSequence S)
{
if ( (NextScript == None) && (NextScriptTag != 'None') )
{
ForEach S.AllActors(class'ScriptedSequence', NextScript, NextScriptTag )
break;
if ( NextScript == None )
{
Warn("No Next script found for "$self$" in "$S);
return S;
}
}
return NextScript;
}
function bool InitActionFor(ScriptedController C)
{
C.bBroken = true;
return true;
}
defaultproperties
{
ActionString="Change script"
bValidForTrigger=false
}