home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Game Level Design
/
GLDesign.bin
/
Software
/
UnrealEngine2Runtime
/
UE2Runtime-22262001_Demo.exe
/
Gameplay
/
Classes
/
ACTION_WaitForPlayer.uc
< prev
next >
Wrap
Text File
|
2003-12-11
|
478b
|
29 lines
class ACTION_WaitForPlayer extends LatentScriptedAction;
var(Action) float Distance;
function bool InitActionFor(ScriptedController C)
{
if ( C.CheckIfNearPlayer(Distance) )
return false;
C.CurrentAction = self;
C.SetTimer(0.1,true);
return true;
}
function float GetDistance()
{
return Distance;
}
function bool WaitForPlayer()
{
return true;
}
defaultproperties
{
Distance=150
ActionString="Wait for player"
bValidForTrigger=false
}