Difference between revisions of "getCruiseControl"

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "- True" to "- true")
m (Text replacement - " |game1= arma3 |branch= dev |version1= 2.06" to " |game1= arma3 |version1= 2.06")
 
Line 2: Line 2:
  
 
|game1= arma3
 
|game1= arma3
 
|branch= dev
 
 
 
|version1= 2.06
 
|version1= 2.06
  

Latest revision as of 18:26, 5 October 2021

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