29 lines
478 B
Ucode
29 lines
478 B
Ucode
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
|
|
} |