Difference between revisions of "00AE"

From GTAMods Wiki
Jump to navigation Jump to search
m
 
Line 2: Line 2:
 
| games      = {{Icon|t}}
 
| games      = {{Icon|t}}
 
| command    = SET_CAR_DRIVING_STYLE
 
| command    = SET_CAR_DRIVING_STYLE
| description = Sets a vehicle's driving style
+
| description = Sets the vehicle's driving mode
 
| syntax1    = 00AE: set_car [''car handle''] traffic_behaviour_to [''int'']  
 
| syntax1    = 00AE: set_car [''car handle''] traffic_behaviour_to [''int'']  
 
| p1t        = [''car handle'']
 
| p1t        = [''car handle'']
| p1d        = Handle of the car
+
| p1d        = The handle of the vehicle
 
| p2t        = [''int'']
 
| p2t        = [''int'']
| p2d        = Car behaviour, see below
+
| p2d        = Driving mode ([[#Driving modes|see below]])
 
}}
 
}}
  
{| class="wikitable"
+
== Driving modes ==
! Value
+
{| class="wikitable center-col-1"
! [[SCM_language_III/VC_definitions#DRIVINGMODE|Enum]]
+
! Mode
 +
! [[SCM language III/VC definitions#DRIVINGMODE|Enum]]
 
! Description
 
! Description
 
|-
 
|-
Line 41: Line 42:
  
 
== Keywords ==
 
== Keywords ==
car, driving, style, traffic, behaviour
+
set, car, vehicle, driving, mode, style, traffic, behavior, behaviour

Latest revision as of 03:41, 6 December 2016

GTA III Vice City San Andreas SET_CAR_DRIVING_STYLE


Description
Sets the vehicle's driving mode
Syntax
00AE: set_car [car handle] traffic_behaviour_to [int]
Parameter
[car handle]
The handle of the vehicle
[int]
Driving mode (see below)

Driving modes

Mode Enum Description
0 DRIVINGMODE_STOPFORCARS follows traffic lights, stops for obstacles
1 DRIVINGMODE_SLOWDOWNFORCARS follows traffic lights, drives into obstacles
2 DRIVINGMODE_AVOIDCARS ignores traffic lights, drives around obstacles
3 DRIVINGMODE_PLOUGHTHROUGH ignores traffic lights, drives into obstacles
4 DRIVINGMODE_STOPFORCARS_IGNORELIGHTS ignores traffic lights, stops for obstacles
5 follows traffic lights, drives around obstacles

Keywords

set, car, vehicle, driving, mode, style, traffic, behavior, behaviour