Player::taskVehicleFollow

From RAGE Multiplayer Wiki

Makes a ped in a vehicle follow an entity (ped, vehicle, etc.)

drivingStyle:
0 = Rushed
1 = Ignore Traffic Lights
2 = Fast
3 = Normal (Stop in Traffic)
4 = Fast avoid traffic
5 = Fast, stops in traffic but overtakes sometimes
6 = Fast avoids traffic extremely

Console Hash: 0xA8B917D7

Player::_TASK_VEHICLE_FOLLOW(l_244[3/*1*/], l_268[3/*1*/], l_278, 40.0, 262144, 10);

What is this known as in the decompiled scripts ffs. I need more examples. I've searched in all scripts for keywords suchas,
TASK_VEHICLE_FOLLOW, FC545A9F0626E3B6, 0xFC545A9F0626E3B6, all the parameters in the above example even just search the last few params '40.0, 262144, 10' and couldnt find where this native is used in scripts at all unless whoever decompiled the scripts gave it a whack a.. name.

Syntax

player.taskVehicleFollow(vehicle, targetEntity, drivingStyle, speed, minDistance);

Required Arguments

  • vehicle: Vehicle handle or object
  • targetEntity: Entity handle or object
  • drivingStyle: int
  • speed: float
  • minDistance: int

Return value

  • Undefined

Example

// todo

See also