Difference between revisions of "00AE"

From GTAMods Wiki
Jump to navigation Jump to search
(added enum, the 5th is unknown atm, any ideas?)
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 a vehicle's driving style
'''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        = Handle of the car
: [''car handle'']
+
| p2t        = [''int'']
:: Handle of the car
+
| p2d        = Car behaviour, see below
: [''int'']
+
}}
:: Car behaviour, see below
 
  
 
{| class="wikitable"
 
{| class="wikitable"
Line 43: Line 42:
 
== Keywords ==
 
== Keywords ==
 
car, driving, style, traffic, behaviour
 
car, driving, style, traffic, behaviour
 
[[Category:OpCodes]]
 

Revision as of 22:06, 17 November 2016

GTA III Vice City San Andreas SET_CAR_DRIVING_STYLE


Description
Sets a vehicle's driving style
Syntax
00AE: set_car [car handle] traffic_behaviour_to [int]
Parameter
[car handle]
Handle of the car
[int]
Car behaviour, see below
Value 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

car, driving, style, traffic, behaviour