Difference between revisions of "03A0"

From GTAMods Wiki
Jump to navigation Jump to search
(Created page with "{{Icon|3}} '''IS_CRANE_LIFTING_CAR''' <hr /> '''Description''' : Checks if a crane is lifting the specified vehicle '''Syntax''' : 03A0:   car [''car handle''] picked...")
 
 
Line 1: Line 1:
{{Icon|3}} '''IS_CRANE_LIFTING_CAR'''
+
{{OpCode
<hr />
+
| games      = {{Icon|3}}
'''Description'''
+
| command    = IS_CRANE_LIFTING_CAR
: Checks if a [[crane]] is lifting the specified vehicle
+
| description = Checks if a [[crane]] is lifting the specified vehicle
'''Syntax'''
+
| syntax1    = 03A0: &nbsp; car [''car handle''] picked_up_by_crane [''flt1''] [''flt2'']
: 03A0: &nbsp; car [''car handle''] picked_up_by_crane [''flt1''] [''flt2'']
+
| p1t        = [''car handle'']
'''Parameter'''
+
| p1d        = The handle of the vehicle
: [''car handle'']
+
| p2t        = [''flt1'']
:: The handle of the vehicle
+
| p2d        = X-coordinate of location of crane
: [''flt1'']
+
| p3t        = [''flt2'']
:: X-coordinate of location of crane
+
| p3d        = Y-coordinate of location of crane
: [''flt2'']
+
}}
:: Y-coordinate of location of crane
 
  
This opcode returns true if a crane at the location is lifting the specified vehicle. Somewhat misleadingly, state 3 (moving upwards from pick up) of the crane is ignored; only states 2 (moving to destination) and 4 (moving downwards to drop off) are detected.
+
This conditional opcode returns true when a crane at the coordinates point is lifting the specified vehicle. Somewhat misleadingly, state 3 (moving upwards from pick up) of the crane is ignored; only states 2 (moving to destination) and 4 (moving downwards to drop off) are detected. The coordinates point does not need to be accurate but its distance from the crane must be within 100 units.
  
 
== Keywords ==
 
== Keywords ==
 
crane, lift, car, vehicle, picked, up
 
crane, lift, car, vehicle, picked, up
 
[[Category:OpCodes]]
 

Latest revision as of 05:42, 22 January 2016

GTA III IS_CRANE_LIFTING_CAR


Description
Checks if a crane is lifting the specified vehicle
Syntax
03A0:   car [car handle] picked_up_by_crane [flt1] [flt2]
Parameter
[car handle]
The handle of the vehicle
[flt1]
X-coordinate of location of crane
[flt2]
Y-coordinate of location of crane

This conditional opcode returns true when a crane at the coordinates point is lifting the specified vehicle. Somewhat misleadingly, state 3 (moving upwards from pick up) of the crane is ignored; only states 2 (moving to destination) and 4 (moving downwards to drop off) are detected. The coordinates point does not need to be accurate but its distance from the crane must be within 100 units.

Keywords

crane, lift, car, vehicle, picked, up