0450
Jump to navigation
Jump to search
SET_JAMES_CAR_ON_PATH_TO_PLAYER
Description
- Joins the car with the road system and makes it drive at the player location
Syntax
- 0450: car [car handle] warp_to_player
Parameter
- [car handle]
- The handle of the vehicle
There are missions where the vehicles controlled by the AI chase the player. If they sunk or flipped, the mission script restores them on the nearby road. This opcode adds the vehicle to the road system and make it move at the point where the player is currently at. Once reached the point, the vehicle moves away if no other command assigned to it. It will only work if there is a driver in the vehicle.
The opcode is probably named after James Worrall, one of the GTA III script writers and designers.
Keywords
car, vehicle, warp, path, player