Difference between revisions of "00AE"

From GTAMods Wiki
Jump to navigation Jump to search
(Created page, hopefully formatted correctly)
 
m
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Icon|trilogy}}
+
{{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
+
 
::0 = follows traffic lights, stops for obstacles
+
== Driving modes ==
::1 = follows traffic lights, drives into obstacles
+
{| class="wikitable center-col-1"
::2 = ignores traffic lights, drives around obstacles
+
! Mode
::3 = ignores traffic lights, drives into obstacles
+
! [[SCM language III/VC definitions#DRIVINGMODE|Enum]]
::4 = ignores traffic lights, stops for obstacles
+
! Description
::5 = follows traffic lights, drives around obstacles
+
|-
 +
| 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

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