Difference between revisions of "0477"

From GTAMods Wiki
Jump to navigation Jump to search
m
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{OpCode
+
{{Icon|trilogy}} '''SET_CAR_TEMP_ACTION'''
| ini        = 0477=3,%1d% %2h% %3d%
+
<hr />
| description = Sets a driving behavior for the vehicle
+
'''Description'''
| p1          = Existing vehicle handle
+
: Sets a driving behavior for the vehicle
| p2          = Integer (behavior)
+
'''Syntax'''
| p3          = Duration (millisecond)
+
: 0477: set_car [''car handle''] action [''int''] time [''int'']
| game        = [[GTA 3]], [[Vice City]], [[San Andreas]]
+
'''Parameter'''
}}
+
: [''car handle'']
This opcode sets a specific driving behavior for a vehicle, except 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.
+
:: The handle of the vehicle
 +
: [''int'']
 +
:: Action (see below)
 +
: [''int'']
 +
:: Duration in ms
  
{| {{prettytable}}
+
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.
! ID
+
 
! Description
+
{| 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
  
==Keywords==
+
[[Category:OpCodes]]
set, car, animation, time
 

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