031D

From GTAMods Wiki
Revision as of 21:57, 19 May 2011 by Spaceeinstein (talk | contribs) (created page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

{{{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