Difference between revisions of "03CC"

From GTAMods Wiki
Jump to navigation Jump to search
(Created page with "{{Icon|trilogy}} '''ADD_STUCK_CAR_CHECK''' <hr /> '''Description''' : Adds the vehicle to the stuck car check array '''Syntax''' : 03CC: add_stuck_car_check [''car handle''] d...")
 
 
(2 intermediate revisions by the same user not shown)
Line 2: Line 2:
 
<hr />
 
<hr />
 
'''Description'''
 
'''Description'''
: Adds the vehicle to the stuck car check array
+
: Adds the vehicle to the stuck cars array
 
'''Syntax'''
 
'''Syntax'''
 
: 03CC: add_stuck_car_check [''car handle''] distance [''float''] time [''int'']
 
: 03CC: add_stuck_car_check [''car handle''] distance [''float''] time [''int'']
Line 9: Line 9:
 
:: The handle of the vehicle
 
:: The handle of the vehicle
 
: ''float''
 
: ''float''
:: Minimum distance the vehicle must be driven
+
:: Minimum distance the vehicle must travel in [[unit]]s
 
: ''int''
 
: ''int''
 
:: Time duration in ms
 
:: Time duration in ms
Line 15: Line 15:
 
: [[ADD_STUCK_CAR_CHECK]]
 
: [[ADD_STUCK_CAR_CHECK]]
  
This opcodes stores a vehicle handle along with the additional parameters into a special array in order to check if it is stuck. The ''vehicle'' is marked as stuck if it does not travel minimum ''distance'' set as the second parameter for the specified amount of ''time'' set as the third parameter. If the vehicle is destroyed, it is removed from the stuck cars array. The stuck cars array can hold up to 6 vehicle handles.
+
This opcode stores a vehicle handle along with the additional parameters into a special array in order to check if it is stuck. The game is constantly checking whether all the vehicles from this array meet the requirements. The ''vehicle'' is marked as stuck if it does not travel minimum ''distance'' set as the second parameter for the specified amount of ''time'' set as the third parameter. If the vehicle is destroyed, it is removed from the stuck cars array. The stuck cars array can hold up to 6 vehicle handles.
 +
 
 +
==Keywords==
 +
stuck, car, vehicle, check, add
  
 
==See also==
 
==See also==
 
* [[03CD]] &ndash; removes the car from the stuck cars array
 
* [[03CD]] &ndash; removes the car from the stuck cars array
 
* [[03CE]] &ndash; checks if the car is stuck
 
* [[03CE]] &ndash; checks if the car is stuck
 +
* {{Icon|SA}} [[072F]] &ndash; adds the car to the stuck cars array (extended version)
  
 
[[Category:OpCodes]]
 
[[Category:OpCodes]]

Latest revision as of 17:56, 26 June 2015

GTA III Vice City San Andreas ADD_STUCK_CAR_CHECK


Description

Adds the vehicle to the stuck cars array

Syntax

03CC: add_stuck_car_check [car handle] distance [float] time [int]

Parameter

car handle
The handle of the vehicle
float
Minimum distance the vehicle must travel in units
int
Time duration in ms

Native analog

ADD_STUCK_CAR_CHECK

This opcode stores a vehicle handle along with the additional parameters into a special array in order to check if it is stuck. The game is constantly checking whether all the vehicles from this array meet the requirements. The vehicle is marked as stuck if it does not travel minimum distance set as the second parameter for the specified amount of time set as the third parameter. If the vehicle is destroyed, it is removed from the stuck cars array. The stuck cars array can hold up to 6 vehicle handles.

Keywords

stuck, car, vehicle, check, add

See also

  • 03CD – removes the car from the stuck cars array
  • 03CE – checks if the car is stuck
  • San Andreas 072F – adds the car to the stuck cars array (extended version)