Difference between revisions of "0119"
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 |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
− | {{Icon|t}} | + | {{OpCode |
− | + | | games = {{Icon|t}} | |
− | + | | command = IS_CAR_DEAD | |
− | + | | description = Checks if the vehicle is dead | |
− | + | | syntax1 = 0119: car [''car handle''] wrecked | |
− | + | | p1t = [''car handle''] | |
− | + | | p1d = 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]]. |
+ | |||
+ | == Example == | ||
+ | :''See [[0136#Example]], [[01C3#Example]]'' | ||
== Keywords == | == Keywords == | ||
Line 18: | Line 20: | ||
* {{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 | ||
− | |||
− |
Latest revision as of 14:52, 15 January 2017
- 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.
Example
- See 0136#Example, 01C3#Example
Keywords
check, car, vehicle, alive, dead, wrecked