Arma 3 Scripting

Command in Unit Control, Object Manipulation

getCruiseControl

Also available as Markdown and JSON, or read the original wiki page.

Description

Returns cruise control settings set with setCruiseControl command.

Syntax

getCruiseControl vehicle

Parameters:

Returns: Array with [speedLimit, cruiseControlActive]

Examples

Example 1

getCruiseControl vehicle player params ["_speedLimit", "_cruiseControlActive"];

See also

setCruiseControl · limitSpeed · forceSpeed · setAirplaneThrottle