ShouldAttackKill
Revision as of 21:39, 21 June 2019 by imported>DavidJCobb (→Notes: disassembly -- attacks will always "kill" dead targets)
Checks to see if the incoming attack will kill the target.
ParametersEdit
- Target: The target of the attack.
Return ValueEdit
Returns 1 if the attack will kill the target.
ExampleEdit
ShouldAttackKill used as a condition function in a perk to make all potentially lethal attacks on the Player deal no damage.
NotesEdit
- 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.