Introduced in | |
Version: | 1.31 |
---|---|
Description | |
Description: | Returns the gear a vehicle is currently in. For vehicles that do not have selectable gears implemented (no For vehicles that have selectable gears, negative values are reverse, 0 are neutral, and positive are forward gears. For example, -2: 2nd Reverse, -1: 1st Reverse, 0: neutral, 1: 1st Forward, 2: 2nd Forward, and so on (the range depends on what is defined for the specific vehicle). |
Syntax | |
Syntax: | getGear vehicle |
Parameters: |
|
Return Value: | Number - Current gear. |
Alternative Syntax | |
Syntax: | getGear [vehicle, mode] (V1.68+ and V2.08+) |
Parameters: |
|
Return Value: | Number - Gear information as specified in mode . |
Examples | |
Examples: | _gear = getGear car1 _selected = getGear [car1,"SHIFT"] |
Additional Information | |
See also: | setGear, getRpm |
Multiplayer: | |
Problems: |
Overview
Content Tools