Difference between revisions of "0228"

From GTAMods Wiki
Jump to navigation Jump to search
m
Line 12: Line 12:
 
:: [[#Bomb types|Bomb type]]
 
:: [[#Bomb types|Bomb type]]
  
This conditional opcode checks current type of bomb armed in the vehicle.
+
This conditional opcode returns true if the vehicle contains the current status type of the bomb.
 
}}</onlyinclude>
 
}}</onlyinclude>
  
Line 19: Line 19:
 
! Type || Enum || Description
 
! Type || Enum || Description
 
|-
 
|-
| 0 || || No bomb
+
| 0 || CARBOMB_NONE || No bomb
 
|-
 
|-
 
| 1 || CARBOMB_TIMED || Inactive timed bomb, can be obtained from [[garage]] type 2
 
| 1 || CARBOMB_TIMED || Inactive timed bomb, can be obtained from [[garage]] type 2

Revision as of 21:49, 28 December 2014

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 returns true if the vehicle contains the current status type of the bomb.

Bomb types

Type Enum Description
0 CARBOMB_NONE 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