A_DamageMaster

From ZDoom Wiki

Jump to: navigation, search

A_DamageMaster (int amount, [string type])


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.

Children/Master/Siblings relationship codepointers
A_DamageChildren A_DamageMaster A_DamageSiblings
A_KillChildren A_KillMaster A_KillSiblings
A_RaiseChildren A_RaiseMaster A_RaiseSiblings
A_RemoveChildren A_RemoveMaster A_RemoveSiblings
Note: These functions only work with monsters.
Personal tools