Difference between revisions of "ShouldAttackKill"
Jump to navigation
Jump to search
imported>Mojo |
imported>DavidJCobb (→Notes: disassembly -- attacks will always "kill" dead targets) |
||
Line 14: | Line 14: | ||
==Notes== | ==Notes== | ||
*Only works on physical attacks | * Only works on physical attacks | ||
*Initial testing has shown that this function only works when run on the Player | * Initial testing has shown that this function only works when run on the Player | ||
* Disassembly suggests that if the target is already dead, this function returns true. | |||
Latest revision as of 21:39, 21 June 2019
Checks to see if the incoming attack will kill the target.
Parameters[edit | edit source]
- Target: The target of the attack.
Return Value[edit | edit source]
Returns 1 if the attack will kill the target.
Example[edit | edit source]
ShouldAttackKill used as a condition function in a perk to make all potentially lethal attacks on the Player deal no damage.
Notes[edit | edit source]
- Only works on physical attacks
- Initial testing has shown that this function only works when run on the Player
- Disassembly suggests that if the target is already dead, this function returns true.