Difference between revisions of "00AE"
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| | + | {{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]]) | |
− | + | }} | |
− | + | ||
− | + | == Driving modes == | |
− | + | {| class="wikitable center-col-1" | |
− | + | ! Mode | |
− | + | ! [[SCM language III/VC definitions#DRIVINGMODE|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 |
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