UE2:ACTION WaitForPlayer (UT2004): Difference between revisions
From Unreal Wiki, The Unreal Engine Documentation Site
Auto-generated page |
m filled in descriptions |
||
Line 5: | Line 5: | ||
| parent3 = Object | | parent3 = Object | ||
}} | }} | ||
{{ | This action completes when a human-controlled pawn to get closer than a certain distance to the AI-controlled pawn currently using the script. This action is not allowed for {{cl|ScriptedTrigger}}s. | ||
==Properties== | ==Properties== | ||
Line 13: | Line 12: | ||
'''Type:''' [[float]] | '''Type:''' [[float]] | ||
The required maximum distance to the player. | |||
'''Default value:''' 150.0 | '''Default value:''' 150.0 | ||
Line 35: | Line 34: | ||
'''Overrides:''' {{tl|GetDistance|LatentScriptedAction}} | '''Overrides:''' {{tl|GetDistance|LatentScriptedAction}} | ||
Returns the desired maximum distance. | |||
====InitActionFor==== | ====InitActionFor==== | ||
Line 42: | Line 41: | ||
'''Overrides:''' {{tl|InitActionFor|LatentScriptedAction}} | '''Overrides:''' {{tl|InitActionFor|LatentScriptedAction}} | ||
Initializes the action and lets the AI pawn wait for the player. | |||
====WaitForPlayer==== | ====WaitForPlayer==== | ||
Line 49: | Line 48: | ||
'''Overrides:''' {{tl|WaitForPlayer|LatentScriptedAction}} | '''Overrides:''' {{tl|WaitForPlayer|LatentScriptedAction}} | ||
Returns ''True'' to tell the {{cl|ScriptedController}} that this action wants to wait for a player. |
Latest revision as of 02:11, 28 November 2008
![]() |
Object >> ScriptedAction >> LatentScriptedAction >> ACTION_WaitForPlayer |
- Package:
- Gameplay
- This class in other games:
This action completes when a human-controlled pawn to get closer than a certain distance to the AI-controlled pawn currently using the script. This action is not allowed for ScriptedTriggers.
Properties
Property group 'Action'
Distance
Type: float
The required maximum distance to the player.
Default value: 150.0
Default values
Property | Value |
---|---|
ActionString | "Wait for player" |
bValidForTrigger | False |
Instance functions
GetDistance
function float GetDistance ()
Overrides: LatentScriptedAction.GetDistance
Returns the desired maximum distance.
InitActionFor
function bool InitActionFor (ScriptedController C)
Overrides: LatentScriptedAction.InitActionFor
Initializes the action and lets the AI pawn wait for the player.
WaitForPlayer
function bool WaitForPlayer ()
Overrides: LatentScriptedAction.WaitForPlayer
Returns True to tell the ScriptedController that this action wants to wait for a player.