03A0

From GTAMods Wiki
Jump to navigation Jump to search

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