Difference between revisions of "0477"

From GTAMods Wiki
Jump to navigation Jump to search
(page updates and values named)
m
 
Line 16: Line 16:
  
 
{| class="wikitable"
 
{| class="wikitable"
! Action || Enum || Notes
+
! Action || [[SCM language III/VC definitions#TEMPACT|Enum]] || Notes
 
|-
 
|-
 
| 0 || TEMPACT_NONE || brake, with brake lights
 
| 0 || TEMPACT_NONE || brake, with brake lights

Latest revision as of 05:18, 6 December 2015

GTA III Vice City San Andreas SET_CAR_TEMP_ACTION


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