Difference between revisions of "0119"

From GTAMods Wiki
Jump to navigation Jump to search
(Created page with "{{Icon|t}} '''IS_CAR_DEAD''' <hr /> '''Description''' : Checks if the vehicle is dead '''Syntax''' : 0119:   car [''car handle''] wrecked '''Parameter''' : [''car handle'...")
 
m
Line 1: Line 1:
{{Icon|t}} '''IS_CAR_DEAD'''
+
{{OpCode
<hr />
+
| games      = {{Icon|t}}
'''Description'''
+
| command    = IS_CAR_DEAD
: Checks if the vehicle is dead
+
| description = Checks if the vehicle is dead
'''Syntax'''
+
| syntax1    = 0119: &nbsp; car [''car handle''] wrecked
: 0119: &nbsp; car [''car handle''] wrecked
+
| p1t        = [''car handle'']
'''Parameter'''
+
| p1d        = The handle of the vehicle
: [''car handle'']
+
}}
:: The handle of the vehicle
 
  
This opcode returns true if the vehicle is dead, which occurs when the vehicle is blown up and rendered undrivable. The vehicle is also dead if it is submerged into water, except if it is a boat. The vehicle can be revived if it can be rendered drivable again, e.g. fished out of the water. In GTA III, it behaves exactly opposite to opcode [[00AC]].
+
This conditional opcode returns true if the vehicle is dead, which occurs when the vehicle is blown up and rendered undrivable. The vehicle is also dead if it is submerged into water, except if it is a boat. The vehicle can be revived if it can be rendered drivable again, e.g. fished out of the water. In GTA III, it behaves exactly opposite to opcode [[00AC]].
  
 
== Keywords ==
 
== Keywords ==
Line 18: Line 17:
 
* {{Icon|t}} [[0117]], checks if the player is dead
 
* {{Icon|t}} [[0117]], checks if the player is dead
 
* {{Icon|t}} [[0118]], checks if the character is dead
 
* {{Icon|t}} [[0118]], checks if the character is dead
 
[[Category:OpCodes]]
 

Revision as of 18:53, 6 December 2016

GTA III Vice City San Andreas IS_CAR_DEAD


Description
Checks if the vehicle is dead
Syntax
0119:   car [car handle] wrecked
Parameter
[car handle]
The handle of the vehicle

This conditional opcode returns true if the vehicle is dead, which occurs when the vehicle is blown up and rendered undrivable. The vehicle is also dead if it is submerged into water, except if it is a boat. The vehicle can be revived if it can be rendered drivable again, e.g. fished out of the water. In GTA III, it behaves exactly opposite to opcode 00AC.

Keywords

check, car, vehicle, alive, dead, wrecked

See also

  • GTA III 00AC, checks if the vehicle is alive
  • GTA III Vice City San Andreas 0117, checks if the player is dead
  • GTA III Vice City San Andreas 0118, checks if the character is dead