Difference between revisions of "GetCombatTarget"
Jump to navigation
Jump to search
imported>Geckbot m (Robot: Automated text replacement (-Link to TES4 Construction Set Wiki +{{Incomplete}}\n\nLink to TES4 Construction Set Wiki)) |
imported>JT |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
'''Syntax:''' | |||
[''ActorID''.]GetCombatTarget | |||
Returns the calling actor's current combat target. | |||
In Fallout 3, 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. | == Notes == | ||
* In Fallout 3, 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. | |||
[[Category:Functions]] | [[Category:Functions]] | ||
[[Category:Functions (GECK 1.1)]] | |||
[[Category:Reference Variable Functions]] | [[Category:Reference Variable Functions]] | ||
[[Category:Reference Variable Functions (GECK 1.1)]] | |||
<!-- Begin Search Terms | |||
Get | |||
Combat | |||
Target | |||
End Search Terms --> |
Latest revision as of 16:38, 27 April 2016
Syntax:
[ActorID.]GetCombatTarget
Returns the calling actor's current combat target.
Notes[edit | edit source]
- In Fallout 3, 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.