home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Game Level Design
/
GLDesign.bin
/
Software
/
UnrealEngine2Runtime
/
UE2Runtime-22262001_Demo.exe
/
Gameplay
/
Classes
/
ACTION_MoveToPoint.uc
< prev
next >
Wrap
Text File
|
2003-12-11
|
782b
|
37 lines
class ACTION_MoveToPoint extends LatentScriptedAction;
var(Action) name DestinationTag; // tag of destination - if none, then use the ScriptedSequence
var Actor Movetarget;
function bool MoveToGoal()
{
return true;
}
function Actor GetMoveTargetFor(ScriptedController C)
{
if ( Movetarget != None )
return MoveTarget;
MoveTarget = C.SequenceScript.GetMoveTarget();
if ( DestinationTag != '' )
{
ForEach C.AllActors(class'Actor',MoveTarget,DestinationTag)
break;
}
if ( AIScript(MoveTarget) != None )
MoveTarget = AIScript(MoveTarget).GetMoveTarget();
return MoveTarget;
}
function string GetActionString()
{
return ActionString@DestinationTag;
}
defaultproperties
{
ActionString="Move to point"
bValidForTrigger=false
}