StartCombat

From GECK
Jump to: navigation, search


A function included in the GECK for Fallout 3.

Description

Forces the actor to start combat with the specified ActorID. If the target actor is already in combat, the function will cause the attacker to target their combat group rather than that actor specifically. If the target is not immediatly visible to the calling actor reference, the calling actor will slowly make their way towards the targets position in a search like behavior.

Syntax

[help]
[actor:ref].StartCombat targetActor:ref

Example

StartCombat player 

Notes

  • StartCombat will not work if the calling actor reference is in any faction that makes them an Ally or Friend of the target actor.
  • Despite what the function name may indicate, this command does not always immediatly put the calling reference into a combat state unless the target is immediatly visible to the calling reference. Otherwise they will search for the target.
  • StartCombat will abort the search behavior if the target is too far away or evades detection for too long. When aborted the actor will go back to being non hostile to the target (Assuming the calling reference was not hostile to begin with).

See Also