0450

From GTAMods Wiki
Revision as of 17:07, 24 June 2015 by Seemann (talk | contribs) (Created page with "{{Icon|3}} {{Icon|vc}} '''SET_JAMES_CAR_ON_PATH_TO_PLAYER''' <hr /> '''Description''' : Joins the car with the road system and makes it drive at the player location '''Syntax'...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

GTA III Vice City 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