Ifhitweapon - EDukeWiki

# Ifhitweapon

From EDukeWiki

ifhitweapon { do something } else { do something else }

Checks if the current actor was struck by a weapon. Built-in damage processing occurs when using ifhitweapon, so it must be called frequently in actor code in order for the actor to be affected by projectiles. Also see ifwasweapon.

Retrieved from "http://wiki.eduke32.com/w/index.php?title=Ifhitweapon&oldid=9917"
Categories:

- Duke3D 1.3/1.5 commands
- Sprite manipulation
- If conditions