GetShouldAttack

From the Oblivion ConstructionSet Wiki
Revision as of 13:55, 14 February 2006 by imported>Maturin
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Syntax:

GetShouldAttack TargetActor 

Example:

EvilBanditBoss.GetShouldAttack player 

Return value indicates the desire of the calling actor to attack the TargetActor. If the return value is greater than 0, the actor will attack the target under normal circumstances (i.e. the actor is aggressive, can detect the target, is not restrained or unconscious, etc.).