Ifhitweapon

From EDukeWiki
Revision as of 09:06, 14 August 2011 by TX (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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.