getCruiseControl

From Bohemia Interactive Community
Revision as of 16:56, 4 January 2026 by R3vo (talk | contribs) (improved return value formatting for parser)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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 with [speedLimit, cruiseControlActive]
  • speedLimit: Number - defined speed limit
  • cruiseControlActive: 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.
Only post proven facts here! Add Note