Difference between revisions of "0477"
Jump to navigation
Jump to search
m |
|||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | {{ | + | {{Icon|trilogy}} '''SET_CAR_TEMP_ACTION''' |
− | + | <hr /> | |
− | + | '''Description''' | |
− | + | : Sets a driving behavior for the vehicle | |
− | + | '''Syntax''' | |
− | + | : 0477: set_car [''car handle''] action [''int''] time [''int''] | |
− | + | '''Parameter''' | |
− | + | : [''car handle''] | |
− | + | :: The handle of the vehicle | |
+ | : [''int''] | ||
+ | :: Action (see below) | ||
+ | : [''int''] | ||
+ | :: Duration in ms | ||
− | {| | + | This opcode sets a specific driving behavior for a vehicle excluding the helicopter. The requirement for this opcode to work is that the vehicle needs to have a driver and the driver cannot be the player. Combinations of these behaviors can be used where physically possible. The driver will not avoid obstacles or follow any paths. |
− | ! | + | |
− | + | {| class="wikitable" | |
+ | ! Action || [[SCM language III/VC definitions#TEMPACT|Enum]] || Notes | ||
|- | |- | ||
− | | 0 || brake, with brake lights | + | | 0 || TEMPACT_NONE || brake, with brake lights |
|- | |- | ||
− | | 1 || gentle brake | + | | 1 || TEMPACT_WAIT || gentle brake |
|- | |- | ||
− | | 2 || reverse | + | | 2 || TEMPACT_REVERSE || reverse |
|- | |- | ||
− | | 3 || turn hard left and brake | + | | 3 || TEMPACT_HANDBRAKETURNLEFT || turn hard left and brake |
|- | |- | ||
− | | 4 || turn hard right and brake | + | | 4 || TEMPACT_HANDBRAKETURNRIGHT || turn hard right and brake |
|- | |- | ||
− | | 5 || brake, no brake lights | + | | 5 || TEMPACT_HANDBRAKESTRAIGHT || brake, no brake lights |
|- | |- | ||
− | | 6 || turn hard left | + | | 6 || TEMPACT_TURNLEFT || turn hard left |
|- | |- | ||
− | | 7 || turn hard right | + | | 7 || TEMPACT_TURNRIGHT || turn hard right |
|- | |- | ||
− | | 8 || forward | + | | 8 || TEMPACT_GOFORWARD || forward |
|- | |- | ||
− | | 9 || turn wide left (right for boat) | + | | 9 || TEMPACT_SWERVELEFT || turn wide left (right for boat) |
|- | |- | ||
− | | 10 || turn wide right (left for boat) | + | | 10 || TEMPACT_SWERVERIGHT || turn wide right (left for boat) |
|} | |} | ||
+ | Any other values will have the same effect as behavior 0. | ||
+ | |||
+ | == Keywords == | ||
+ | set, car, action, animation, time | ||
+ | |||
+ | [[Category:OpCodes]] |
Latest revision as of 05:18, 6 December 2015
Description
- Sets a driving behavior for the vehicle
Syntax
- 0477: set_car [car handle] action [int] time [int]
Parameter
- [car handle]
- The handle of the vehicle
- [int]
- Action (see below)
- [int]
- Duration in ms
This opcode sets a specific driving behavior for a vehicle excluding the helicopter. The requirement for this opcode to work is that the vehicle needs to have a driver and the driver cannot be the player. Combinations of these behaviors can be used where physically possible. The driver will not avoid obstacles or follow any paths.
Action | Enum | Notes |
---|---|---|
0 | TEMPACT_NONE | brake, with brake lights |
1 | TEMPACT_WAIT | gentle brake |
2 | TEMPACT_REVERSE | reverse |
3 | TEMPACT_HANDBRAKETURNLEFT | turn hard left and brake |
4 | TEMPACT_HANDBRAKETURNRIGHT | turn hard right and brake |
5 | TEMPACT_HANDBRAKESTRAIGHT | brake, no brake lights |
6 | TEMPACT_TURNLEFT | turn hard left |
7 | TEMPACT_TURNRIGHT | turn hard right |
8 | TEMPACT_GOFORWARD | forward |
9 | TEMPACT_SWERVELEFT | turn wide left (right for boat) |
10 | TEMPACT_SWERVERIGHT | turn wide right (left for boat) |
Any other values will have the same effect as behavior 0.
Keywords
set, car, action, animation, time