031D
HAS_CHAR_BEEN_DAMAGED_BY_WEAPON
Description
- Checks if the character has been damaged by the specified weapon or environment
Syntax
- 031D: actor [char handle] hit_by_weapon [int]
Parameter
- [char handle]
- The handle of the character
- [int]
- Weapon number (see this in addition to below)
Native analog
This conditional opcode returns true if the character has been damaged by the specified weapon or environment. The last damage done to the character can be cleared using opcode 0467. Values outside the range of weapon numbers are supported for a variety of environmental damage. Weapon numbers for projectiles do not get recognized so environmental values have to be used instead.
Environmental damage values
Keywords
has, actor, character, been, damaged, damage, hit, by, weapon