Gah - a solution with more questions. – EntropicLqd

UE2:ACTION_ShootTarget (UE2Runtime)

From Unreal Wiki, The Unreal Engine Documentation Site
Revision as of 09:12, 17 May 2008 by Wormbo (Talk | contribs) (Auto-generated page)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
UE2Runtime Object >> ScriptedAction >> ACTION_ShootTarget
Package: 
Gameplay
This class in other games:
UT2003, U2, UT2004

Instructs a scripted AI player to fire a certain number of shots at its designated target. Use ACTION_SetViewTarget to set a target. Note that ACTION_TurnTowardPlayer also sets the player as target.

This action is not explicitly disallowed for ScriptedTriggers, but it doesn't really make sense to use it there.

Properties

Property group 'Action'

bSpray

Type: bool

Whether to fire all shots as quickly as possible.

FiringMode

Type: name

The firing mode to use. Doesn't actually have any effect for stock weapons, but could be processed in a custom weapon's BotFire() function.

NumShots

Type: int

The number of shots to fire.

Default values

Property Value
ActionString "shoot target"

Instance functions

InitActionFor

function bool InitActionFor (ScriptedController C)

Overrides: ScriptedAction.InitActionFor

Instructs the AI controller to fire its pawn's weapon at the target.