Difference between revisions of "018F"
(update time) |
|||
(2 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
− | + | {{OpCode | |
− | + | | games = {{Icon|t}} | |
− | ''' | + | | command = IS_CAR_STUCK_ON_ROOF |
− | '' | + | | description = Checks if the vehicle is "stuck on its roof" |
+ | | syntax1 = 018F: vehicle [''car handle''] flipped | ||
+ | | p1t = [''car handle''] | ||
+ | | p1d = The handle of the vehicle | ||
+ | }} | ||
− | This opcode returns true if the | + | This conditional opcode returns true if the vehicle is "stuck on its roof," i.e. the vehicle has been [[0190|added to the upside down car check]] and its translational and rotational movements are minimal while upside down for more than a certain threshold. The threshold is 1 second in GTA III and Vice City, and 2 seconds in San Andreas. This opcode remains in effect if the vehicle is exploded. This opcode was never called in the [[Main.scm|original script]] of GTA III. Note that in GTA III, if there is a vehicle in the upside down cars array that is stuck on its roof during [[Create a mission|missions]] with [[0111|death/arrest state]] switched on, the game will [[0112|execute a death/arrest]] and fail the mission regardless of this opcode. |
− | ==Keywords== | + | == Keywords == |
− | car, flip, | + | check, car, vehicle, stuck, roof, flip, flipped, upside, down |
− | [[ | + | == See also == |
+ | * {{Icon|t}} [[0190]], adds the vehicle to the upside down car check | ||
+ | * {{Icon|t}} [[0191]], removes the vehicle from the upside down car check |
Latest revision as of 19:42, 30 January 2021
- Description
- Checks if the vehicle is "stuck on its roof"
- Syntax
- 018F: vehicle [car handle] flipped
- Parameter
- [car handle]
- The handle of the vehicle
This conditional opcode returns true if the vehicle is "stuck on its roof," i.e. the vehicle has been added to the upside down car check and its translational and rotational movements are minimal while upside down for more than a certain threshold. The threshold is 1 second in GTA III and Vice City, and 2 seconds in San Andreas. This opcode remains in effect if the vehicle is exploded. This opcode was never called in the original script of GTA III. Note that in GTA III, if there is a vehicle in the upside down cars array that is stuck on its roof during missions with death/arrest state switched on, the game will execute a death/arrest and fail the mission regardless of this opcode.
Keywords
check, car, vehicle, stuck, roof, flip, flipped, upside, down