Difference between revisions of "00AE"

From GTAMods Wiki
Jump to navigation Jump to search
(added enum, the 5th is unknown atm, any ideas?)
m
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{Icon|trilogy}} '''SET_CAR_DRIVING_STYLE'''
+
{{OpCode
<hr />
+
| games      = {{Icon|t}}
'''Description'''
+
| command    = SET_CAR_DRIVING_STYLE
: Sets a vehicle's driving style
+
| description = Sets the vehicle's driving mode
'''Syntax'''
+
| syntax1    = 00AE: set_car [''car handle''] traffic_behaviour_to [''int'']  
: 00AE: set_car [''car handle''] traffic_behaviour_to [''int'']  
+
| p1t        = [''car handle'']
'''Parameters'''
+
| p1d        = The handle of the vehicle
: [''car handle'']
+
| p2t        = [''int'']
:: Handle of the car
+
| p2d        = Driving mode ([[#Driving modes|see below]])
: [''int'']
+
}}
:: Car behaviour, 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 42: Line 42:
  
 
== Keywords ==
 
== Keywords ==
car, driving, style, traffic, behaviour
+
set, car, vehicle, driving, mode, style, traffic, behavior, behaviour
 
 
[[Category:OpCodes]]
 

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