Ifhitweapon: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
Checks if the current [[actor]] was struck by a weapon. | '''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]]. | |||
[[Category:Duke3D 1.3/1.5 commands]] | [[Category:Duke3D 1.3/1.5 commands]] | ||
[[Category:Sprite manipulation]] | |||
[[Category:If conditions]] | [[Category:If conditions]] |
Latest revision as of 09:06, 14 August 2011
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.