getCruiseControl: Difference between revisions
Jump to navigation
Jump to search
(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...") |
Lou Montana (talk | contribs) m (Text replacement - "(\|[pr][0-9]+ *= *[^-]+) *- *D([a-z])" to "$1 - d$2") |
||
(3 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
|game1= arma3 | |game1= arma3 | ||
|version1= 2.06 | |version1= 2.06 | ||
Line 19: | Line 16: | ||
|s1= [[getCruiseControl]] vehicle | |s1= [[getCruiseControl]] vehicle | ||
|p1= vehicle: [[Object]] - | |p1= vehicle: [[Object]] - the vehicle | ||
|r1= [[Array]] in format: | |r1= [[Array]] in format: | ||
* 0: [[Number]] - | * 0: [[Number]] - defined speed limit | ||
* 1: [[Boolean]] - [[true | * 1: [[Boolean]] - [[true]] if cruise control is enabled, [[false]] if only speed was limited | ||
|x1= < | |x1= <sqf>getCruiseControl vehicle player params ["_speedLimit", "_cruiseControlActive"];</sqf> | ||
|seealso= [[setCruiseControl]] [[limitSpeed]] [[forceSpeed]] [[setAirplaneThrottle]] | |seealso= [[setCruiseControl]] [[limitSpeed]] [[forceSpeed]] [[setAirplaneThrottle]] | ||
}} | }} |
Latest revision as of 14:01, 8 November 2023
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:
Examples
- Example 1:
Additional Information
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