Difference between revisions of "03CC"
Jump to navigation
Jump to search
m |
|||
Line 15: | Line 15: | ||
: [[ADD_STUCK_CAR_CHECK]] | : [[ADD_STUCK_CAR_CHECK]] | ||
− | This | + | 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. |
==See also== | ==See also== |
Revision as of 21:10, 25 June 2015
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
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.