Difference between revisions of "0118"

From GTAMods Wiki
Jump to navigation Jump to search
(Created page with "{{Icon|t}} '''IS_CHAR_DEAD''' <hr /> '''Description''' : Checks if the character is dead '''Syntax''' : 0118:   actor [''char handle''] dead '''Parameter''' : [''char han...")
 
m
Line 1: Line 1:
{{Icon|t}} '''IS_CHAR_DEAD'''
+
{{OpCode
<hr />
+
| games      = {{Icon|t}}
'''Description'''
+
| command    = IS_CHAR_DEAD
: Checks if the character is dead
+
| description = Checks if the character is dead
'''Syntax'''
+
| syntax1    = 0118: &nbsp; actor [''char handle''] dead
: 0118: &nbsp; actor [''char handle''] dead
+
| p1t        = [''char handle'']
'''Parameter'''
+
| p1d        = The handle of the character
: [''char handle'']
+
}}
:: The handle of the character
 
  
 
This opcode returns true if the character is dead, which happens when its health reaches 0. It also returns true if the character does not exist, which is extremely useful to check in order to prevent unnecessary game crashes when using other opcodes that require the existence of the character. In GTA III, it behaves exactly opposite to [[00A2]].
 
This opcode returns true if the character is dead, which happens when its health reaches 0. It also returns true if the character does not exist, which is extremely useful to check in order to prevent unnecessary game crashes when using other opcodes that require the existence of the character. In GTA III, it behaves exactly opposite to [[00A2]].
Line 15: Line 14:
  
 
== See also ==
 
== See also ==
* [[0117]], checks if the player is dead
+
* {{Icon|t}} [[0117]], checks if the player is dead
 
 
[[Category:OpCodes]]
 

Revision as of 16:30, 4 June 2016

GTA III Vice City San Andreas IS_CHAR_DEAD


Description
Checks if the character is dead
Syntax
0118:   actor [char handle] dead
Parameter
[char handle]
The handle of the character

This opcode returns true if the character is dead, which happens when its health reaches 0. It also returns true if the character does not exist, which is extremely useful to check in order to prevent unnecessary game crashes when using other opcodes that require the existence of the character. In GTA III, it behaves exactly opposite to 00A2.

Keywords

check, character, actor, alive, dead, exist

See also

  • GTA III Vice City San Andreas 0117, checks if the player is dead