Difference between revisions of "ShouldAttackKill"

From the CreationKit Wiki
Jump to navigation Jump to search
imported>SJML Bot
(Bot creating condition functions pages.)
 
imported>Mojo
Line 1: Line 1:
Checks to see if the incoming attack will kill the target.
==Parameters==
* Target: The target of the attack.
==Return Value==
Returns 1 if the attack will kill the target.
==Example==
'''ShouldAttackKill''' used as a condition function in a perk to make all potentially lethal attacks on the Player deal no damage.
[[File:Shouldattackkill example.jpeg]]
==Notes==
*Only works on physical attacks
*Initial testing has shown that this function only works when run on the Player




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

Revision as of 22:28, 15 November 2013

Checks to see if the incoming attack will kill the target.

Parameters

  • Target: The target of the attack.

Return Value

Returns 1 if the attack will kill the target.

Example

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

  • Only works on physical attacks
  • Initial testing has shown that this function only works when run on the Player