A_Die

From DoomWiki.org

Under construction icon-yellow.svgThis article or section is a stub. Please help the Doom Wiki by adding to it.

A_Die is a code pointer first introduced in the MBF source port. It damages the calling actor by the amount of its current health, setting its health to zero and activating its death animation. As a result, this code pointer cannot trigger an actor's gib death. Furthermore, A_Die will have no effect if the calling actor does not have the SHOOTABLE flag set, as it makes use of the P_DamageMobj function, which aborts if the SHOOTABLE flag is not detected.

Example[edit]

The following is an example of how to set the A_Die code pointer in a DeHackEd file using BEX syntax:

[CODEPTR]
Frame 1234 = Die

External links[edit]