Difference between revisions of "GetIsInjured"

From the CreationKit Wiki
Jump to navigation Jump to search
imported>DavidJCobb
(Confirmed via disassembly. When disassembling, note that the return value is a double; it's 0x3FF0000000000000 (1.0), not 0x3FF00000 (1.875F).)
imported>DavidJCobb
(more info, from disassembly)
 
Line 1: Line 1:
Checks the ''Injured'' boolean variable in the reference's animation graph. If the variable is true, this condition returns 1.0. Otherwise, it returns zero.
Checks the ''Injured'' boolean variable in the subject actor's animation graph. If the variable is true, this condition returns 1.0. Otherwise, it returns zero.
 
The ''Injured'' variable is automatically set to true when an actor's health, as a percentage, falls below its [[Race]]'s Injured Health Percentage. (There are other requirements involved that have not yet been decoded; interested reverse-engineers for Skyrim Classic should look near 0x006DFD5F).


[[Category:Condition Functions]]
[[Category:Condition Functions]]

Latest revision as of 16:16, 26 July 2018

Checks the Injured boolean variable in the subject actor's animation graph. If the variable is true, this condition returns 1.0. Otherwise, it returns zero.

The Injured variable is automatically set to true when an actor's health, as a percentage, falls below its Race's Injured Health Percentage. (There are other requirements involved that have not yet been decoded; interested reverse-engineers for Skyrim Classic should look near 0x006DFD5F).