Difference between revisions of "0228"

From GTAMods Wiki
Jump to navigation Jump to search
(Created page with "{{Icon|3}} '''IS_CAR_ARMED_WITH_BOMB''' <hr /> <onlyinclude>{{#ifeq:{{{transcludesection|opcode}}}|opcode| '''Description''' : '''Syntax''' : 0228:   car [''car handle''...")
 
m
Line 3: Line 3:
 
<onlyinclude>{{#ifeq:{{{transcludesection|opcode}}}|opcode|
 
<onlyinclude>{{#ifeq:{{{transcludesection|opcode}}}|opcode|
 
'''Description'''
 
'''Description'''
:  
+
: Checks current type of bomb armed in the vehicle
 
'''Syntax'''
 
'''Syntax'''
 
: 0228: &nbsp; car [''car handle''] bomb_status == [''int'']
 
: 0228: &nbsp; car [''car handle''] bomb_status == [''int'']

Revision as of 20:15, 10 April 2012

GTA III IS_CAR_ARMED_WITH_BOMB


Description

Checks current type of bomb armed in the vehicle

Syntax

0228:   car [car handle] bomb_status == [int]

Parameter

[car handle]
The handle of the vehicle
[int]
Bomb type

This conditional opcode checks current type of bomb armed in the vehicle.

Bomb types

Type Enum Description
0 No bomb
1 CARBOMB_TIMED Inactive timed bomb, can be obtained from garage type 2
2 CARBOMB_ONIGNITION Inactive ignition bomb, can be obtained from garage type 3
3 CARBOMB_REMOTE Remote detonation bomb, can be obtained from garage type 4
4 CARBOMB_TIMEDACTIVE Active timed bomb, activated from bomb type 1
5 CARBOMB_ONIGNITIONACTIVE Active ignition bomb, activated from bomb type 2

Keywords

check, car, vehicle, bomb, status

See also

  • 0242, arms the car with the type of bomb