031D

From GTAMods Wiki
Revision as of 07:19, 14 May 2013 by Mr. Dummy (talk | contribs) (weapon types)
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 - heli blades
  • 40 - vehicle collision
  • 41 - explosion
  • 42 - drive-by
  • 43 - water
  • 44 - ground collision
  • 47 - any player's weapon