getCruiseControl: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Some wiki formatting)
m (Text replacement - "(\|[pr][0-9]+ *= *[^-]+) *- *D([a-z])" to "$1 - d$2")
 
Line 19: Line 19:


|r1= [[Array]] in format:
|r1= [[Array]] in format:
* 0: [[Number]] - Defined speed limit
* 0: [[Number]] - defined speed limit
* 1: [[Boolean]] - [[true]] if cruise control is enabled, [[false]] if only speed was limited
* 1: [[Boolean]] - [[true]] if cruise control is enabled, [[false]] if only speed was limited



Latest revision as of 15:01, 8 November 2023

Hover & click on the images for description

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 in format:
  • 0: Number - defined speed limit
  • 1: Boolean - true if cruise control is enabled, false if only speed was limited

Examples

Example 1:
getCruiseControl vehicle player params ["_speedLimit", "_cruiseControlActive"];

Additional Information

See also:
setCruiseControl limitSpeed forceSpeed setAirplaneThrottle

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note