ShouldAttackKill

From the CreationKit Wiki
Jump to navigation Jump to search

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.

Shouldattackkill example.jpeg


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.