Difference between revisions of "056C"

From GTAMods Wiki
Jump to navigation Jump to search
(created article)
 
Line 1: Line 1:
{{OpCode
+
{{Icon|VC}} {{Icon|SA}}
| ini        = 056C=1,  %1d%
+
<hr />
| description = Checks if the actor is in a police vehicle
+
'''Description'''
| p1          = Actor handle
+
: Checks if the character is in a police vehicle
| game        = [[Vice City]], [[San Andreas]]
+
'''Syntax'''
| native      = [[IS_CHAR_IN_ANY_POLICE_VEHICLE]]
+
: 056C:  actor [''char handle''] driving_police_vehicle
}}
+
'''Parameter'''
This conditional opcode returns true if the actor is in a police vehicle. Vehicles the game recognizes as police vehicles include:
+
: [''char handle'']
{|
+
:: The handle of the character
! Vice City
+
'''Native analog'''
! San Andreas
+
: [[IS_CHAR_IN_ANY_POLICE_VEHICLE]]
 +
This conditional opcode returns true if the character is in a police vehicle. The opcode recognizes the following vehicles:
 +
{| {{prettytable}}
 +
! colspan="2" | Vice City || colspan="2" | San Andreas
 
|-
 
|-
| Barracks OL
+
! ID || Name || ID || Name
|  
 
 
|-
 
|-
| Enforcer
+
| 156 || Police || 427 || Enforcer
|
 
 
|-
 
|-
| FBI Rancher
+
| 157 || Enforcer || 430 || Predator
|  
 
 
|-
 
|-
| Police
+
| 160 || Predator || 432 || Rhino
|  
 
 
|-
 
|-
| Predator
+
| 162 || Rhino || 433 || Barracks
|  
 
 
|-
 
|-
| Rhino
+
| 163 || Barracks OL || 497 || Police Maverick
|  
 
 
|-
 
|-
| Cheetah (VCPD)
+
| 220 || FBI Rancher || 523 ||
|  
+
|-
 +
| 236 || Cheetah (VCPD) || 528 ||
 +
|-
 +
| || || 596 ||
 +
|-
 +
| || || 597 ||
 +
|-
 +
| || || 598 ||
 +
|-
 +
| || || 599 ||
 +
|-
 +
| || || 601 ||
 
|}
 
|}
  
==Keywords==
+
== Keywords ==
 
check, actor, driving, police, law enforcement, car, vehicle
 
check, actor, driving, police, law enforcement, car, vehicle
 +
 +
[[Category:OpCodes]]

Revision as of 02:46, 4 December 2011

Vice City San Andreas


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. The opcode recognizes the following vehicles:

Vice City San Andreas
ID Name ID Name
156 Police 427 Enforcer
157 Enforcer 430 Predator
160 Predator 432 Rhino
162 Rhino 433 Barracks
163 Barracks OL 497 Police Maverick
220 FBI Rancher 523
236 Cheetah (VCPD) 528
596
597
598
599
601

Keywords

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