Difference between revisions of "00AE"
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| | + | {{OpCode |
| − | + | | games = {{Icon|t}} | |
| − | + | | command = SET_CAR_DRIVING_STYLE | |
| − | + | | description = Sets the vehicle's driving mode | |
| − | + | | syntax1 = 00AE: set_car [''car handle''] traffic_behaviour_to [''int''] | |
| − | + | | p1t = [''car handle''] | |
| − | + | | p1d = The handle of the vehicle | |
| − | + | | p2t = [''int''] | |
| − | + | | p2d = Driving mode ([[#Driving modes|see below]]) | |
| − | + | }} | |
| − | |||
| − | {| class="wikitable" | + | == Driving modes == |
| − | ! | + | {| class="wikitable center-col-1" |
| − | ! [[ | + | ! 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 |
| − | |||
| − | |||
Latest revision as of 03:41, 6 December 2016
- 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