getCruiseControl: Difference between revisions
BrettMayson (talk | contribs) No edit summary |
(improved return value formatting for parser) |
||
| Line 18: | Line 18: | ||
|p1= vehicle: [[Object]] - the vehicle | |p1= vehicle: [[Object]] - the vehicle | ||
|r1= [[Array]] | |r1= [[Array]] with [speedLimit, cruiseControlActive] | ||
* | * speedLimit: [[Number]] - defined speed limit | ||
* | * cruiseControlActive: [[Boolean]] - [[true]] if cruise control is enabled, [[false]] if only speed was limited | ||
|x1= <sqf>getCruiseControl vehicle player params ["_speedLimit", "_cruiseControlActive"];</sqf> | |x1= <sqf>getCruiseControl vehicle player params ["_speedLimit", "_cruiseControlActive"];</sqf> | ||
Latest revision as of 17:56, 4 January 2026
Description
- Description:
- Returns cruise control settings set with setCruiseControl command.
- Groups:
- Unit ControlObject Manipulation
Syntax
- Syntax:
- getCruiseControl vehicle
- Parameters:
- vehicle: Object - the vehicle
- Return Value:
- Array with [speedLimit, cruiseControlActive]
Examples
- Example 1:
Additional Information
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord.
Only post proven facts here! Add Note