Guide 1 Docs 2 Reference 3

Function of EntityAmendSpec

entityAmendSpec.on_damage

Asked when it takes damage; return "ignore" to cancel it. Silence or a missed deadline is "take".

entityAmendSpec.on_damage((e: EntityHandle, amount: number) -> ("take" | "ignore")?) → ?

Parameters

(eEntityHandle, amount: number) -> ("take" | "ignore")optional

Returns

?