Difference between revisions of "056C"

From GTAMods Wiki
Jump to navigation Jump to search
(added lcs)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{Icon|VC}} {{Icon|SA}}
+
{{OpCode
<hr />
+
| games      = {{Icon|VC}} {{Icon|SA}}
'''Description'''
+
| command    = IS_CHAR_IN_ANY_POLICE_VEHICLE
: Checks if the character is in a police vehicle
+
| description = Checks if the character is in a police vehicle
'''Syntax'''
+
| syntax1    = 056C: &nbsp; actor [''char handle''] driving_police_vehicle
: 056C:   actor [''char handle''] driving_police_vehicle
+
| p1t        = [''char handle'']
'''Parameter'''
+
| p1d        = The handle of the character
: [''char handle'']
+
| native      = [[IS_CHAR_IN_ANY_POLICE_VEHICLE]]
:: The handle of the character
+
}}
'''Native analog'''
+
 
: [[IS_CHAR_IN_ANY_POLICE_VEHICLE]]
+
This conditional opcode returns true if the character is in a police vehicle. It recognizes the following as police vehicles:
This conditional opcode returns true if the character is in a police vehicle. The opcode recognizes the following vehicles:
+
{|class="wikitable sortable"
{| {{prettytable}}
+
!colspan="2" |{{Icon|VC}} ||colspan="2" |{{Icon|SA}} ||colspan="2" |{{Icon|LCS}}
! colspan="2" | Vice City || colspan="2" | San Andreas
 
 
|-
 
|-
! ID || Name || ID || Name
+
!Id ||Name ||Id ||Name ||Id ||Name
 
|-
 
|-
| 156 || Police || 427 || Enforcer
+
|156 ||Police ||427 ||Enforcer ||148 ||FBI Cruiser
 
|-
 
|-
| 157 || Enforcer || 430 || Predator
+
|157 ||Enforcer ||430 ||Predator ||157 ||Police
 
|-
 
|-
| 160 || Predator || 432 || Rhino
+
|160 ||Predator ||432 ||Rhino ||158 ||Enforcer
 
|-
 
|-
| 162 || Rhino || 433 || Barracks
+
|162 ||Rhino ||433 ||Barracks ||162 ||Rhino
 
|-
 
|-
| 163 || Barracks OL || 497 || Police Maverick
+
|163 ||Barracks OL ||497 ||Police Maverick ||163 ||Barracks OL
 
|-
 
|-
| 220 || FBI Rancher || 523 ||
+
|220 ||FBI Rancher ||523 ||HPV1000 ||196 ||Predator
 
|-
 
|-
| 236 || Cheetah (VCPD) || 528 ||
+
|236 ||Cheetah (VCPD) ||528 ||FBI Truck ||||
 
|-
 
|-
| || || 596 ||
+
|||||596 ||Police (Los Santos) ||||
 
|-
 
|-
| || || 597 ||
+
|||||597 ||Police (San Fierro) ||||
 
|-
 
|-
| || || 598 ||
+
|||||598 ||Police (Las Venturas) ||||
 
|-
 
|-
| || || 599 ||
+
|||||599 ||Ranger ||||
 
|-
 
|-
| || || 601 ||
+
|||||601 ||S.W.A.T. ||||
 
|}
 
|}
  
 
== Keywords ==
 
== Keywords ==
 
check, actor, driving, police, law enforcement, car, vehicle
 
check, actor, driving, police, law enforcement, car, vehicle
 
[[Category:OpCodes]]
 

Latest revision as of 08:56, 7 November 2016

Vice City San Andreas IS_CHAR_IN_ANY_POLICE_VEHICLE


Description
Checks if the character is in a police vehicle
Syntax
056C:   actor [char handle] driving_police_vehicle
Parameter
[char handle]
The handle of the character
Native analog
IS_CHAR_IN_ANY_POLICE_VEHICLE

This conditional opcode returns true if the character is in a police vehicle. It recognizes the following as police vehicles:

Vice City San Andreas Liberty City Stories
Id Name Id Name Id Name
156 Police 427 Enforcer 148 FBI Cruiser
157 Enforcer 430 Predator 157 Police
160 Predator 432 Rhino 158 Enforcer
162 Rhino 433 Barracks 162 Rhino
163 Barracks OL 497 Police Maverick 163 Barracks OL
220 FBI Rancher 523 HPV1000 196 Predator
236 Cheetah (VCPD) 528 FBI Truck
596 Police (Los Santos)
597 Police (San Fierro)
598 Police (Las Venturas)
599 Ranger
601 S.W.A.T.

Keywords

check, actor, driving, police, law enforcement, car, vehicle