A_DamageMaster

From ZDoom Wiki

Jump to: navigation, search

A_DamageMaster (int amount, [string type])
(development version only)


Damages this actor's master by the specified amount. Negative values heal the master, instead. Remember that the actor that uses this HAS to be spawned with A_SpawnItemEx with the master/child flag.


  • amount: Amount of damage to inflict. Use a negative value to heal.
  • type: The type of damage to inflict.

Examples

Note: This article lists no examples. If you make use of this feature in your own project(s) or know of any basic examples that could be shared, please add them. This will make it easier to understand for future authors seeking assistance. Your contibutions are greatly appreciated.
Personal tools