046E

From GTAMods Wiki
Jump to navigation Jump to search

GTA III Vice City San Andreas GIVE_REMOTE_CONTROLLED_MODEL_TO_PLAYER


Description
Gives the player remote control of a vehicle model
Syntax
046E: put_player [player handle] in_RC_mode_at [flt1] [flt2] [flt3] angle [flt4] RC_model [int]
Parameter
[player handle]
The handle of the player
[flt1]
X-coordinate
[flt2]
Y-coordinate
[flt3]
Z-coordinate (or ≤-100.0 for ground z)
[flt4]
Heading
[int]
Valid vehicle model ID number as defined in the CARS section of the IDE file; also acceptable is model's DFF name with a hash character

This opcode spawns a vehicle of the specified model and gives remote control of it to the player. If the specified model is an RC Bandit, the opcode functions equivalently to opcode 010C. Using this opcode requires the model to be already loaded, usually through opcode 0247, or else the game will crash. Any model other than the RC Bandit does not allow detonation on contact and, in GTA III, is not restricted by zones where the RC Bandit immediately detonates. Otherwise, the opcode behaves the same way as 010C. This opcode was never called in the original script of GTA III.

Keywords

give, player, remote, controlled, car, vehicle, model

See also

  • GTA III Vice City 010C, gives the player remote control of an RC Bandit