GetCombatTarget
From GECK
A function included in the GECK for Fallout 3.
Contents
Description
Returns the calling actor's current combat target.
Syntax
(combatTarget:ref) [actor:ref].GetCombatTarget
Notes
- This function can be called on the player and it will return a meaningful value. If the player is aiming at an actor and is close enough for auto aim to work, this function will return a reference to the actor the player is aiming at.
- It will yield a value immediately after an actor is struck by explosives thrown (or fired) by the player, if an actor has been struck by a melee attack by the player, or if the auto-aim has locked onto the target.
- It appears to be fed by the same data which reveals the health bar on the user's HUD.