Difference between revisions of "031D"

From GTAMods Wiki
Jump to navigation Jump to search
(created page)
 
(weapon types)
Line 11: Line 11:
 
Vice City:
 
Vice City:
 
* 31 - fire
 
* 31 - fire
* 39 - vehicle collision
+
* 39 - heli blades
* 40 - heli blades
+
* 40 - vehicle collision
 
* 41 - explosion
 
* 41 - explosion
 +
* 42 - drive-by
 
* 43 - water
 
* 43 - water
 
* 44 - ground collision
 
* 44 - ground collision
 +
* 47 - any player's weapon

Revision as of 07:19, 14 May 2013

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