getCruiseControl

From Bohemia Interactive Community
Revision as of 17:27, 26 May 2021 by R3vo (talk | contribs) (Created page with "{{RV|type=command |game1= arma3 |branch= dev |version1= 2.06 |arg= local |eff= local |descr= Returns cruise control settings set with setCruiseControl command. |gr1...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Hover & click on the images for description
Only available in Development branch(es) until its release with Arma 3 patch v2.06.

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