031D
{{{games}}}
- Description
- Checks if the character has been damaged by the specified weapon
- Syntax
- {{{syntax1}}}
- Parameter
- Native analog
- HAS_CHAR_BEEN_DAMAGED_BY_WEAPON
This conditional opcode returns true if the character has been damaged by the specific weapon. The last damage done to the character can be cleared using opcode 0467. Weapon numbers for projectiles do not get recognized so other values has to be used. Values outside the range of weapon numbers are supported for a variety of environmental damage.
Vice City:
- 31 - fire
- 39 - vehicle collision
- 40 - heli blades
- 41 - explosion
- 43 - water
- 44 - ground collision