setCruiseControl: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Some wiki formatting) |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
Line 47: | Line 47: | ||
|s1= vehicle [[setCruiseControl]] [speed, autoThrust] | |s1= vehicle [[setCruiseControl]] [speed, autoThrust] | ||
|p1= vehicle: [[Object]] - the vehicle to limit; [[local]] [[player]]'s vehicle ( | |p1= vehicle: [[Object]] - the vehicle to limit; [[local]] [[player]]'s vehicle (<sqf inline>vehicle player</sqf>) | ||
|p2= speed: [[Number]] - desired/top speed in km/h. 0 to disable any setting. Only positives values are valid, negative values will make the vehicle unable to move forward | |p2= speed: [[Number]] - desired/top speed in km/h. 0 to disable any setting. Only positives values are valid, negative values will make the vehicle unable to move forward |
Revision as of 15:44, 1 July 2022
Description
- Description:
- Limits or sets local player-controlled vehicle's speed through cruise control.
Speed Limiter Cruise Control - the vehicle does not accelerate by itself
- manually accelerating is required to move forward
- accelerating beyond set speed limit is restricted by the PID controller
- applying brakes does not disable Speed Limiter
- behaviour:
- if the speed is over 120% the set limit, the vehicle will apply 100% of braking and limit acceleration to 0%
- if the speed is below 80% the set limit, the acceleration and braking are untouched
- between 80 and 120%, the PID controller limits the acceleration and applies brakes if required
- the vehicle accelerates by itself
- manually accelerating is possible
- accelerating above set speed limit is possible
- applying brakes disables Cruise Control
- behaviour:
- if the speed is over 120% the set limit, the vehicle will apply 100% of braking
- if the speed is below 80% the set limit, the vehicle will apply 100% of acceleration
- between 80 and 120%, the PID controller manages the speed
- Groups:
- Unit ControlObject Manipulation
Syntax
- Syntax:
- vehicle setCruiseControl [speed, autoThrust]
- Parameters:
- vehicle: Object - the vehicle to limit; local player's vehicle (vehicle player)
- speed: Number - desired/top speed in km/h. 0 to disable any setting. Only positives values are valid, negative values will make the vehicle unable to move forward
- autoThrust: Boolean
- Return Value:
- Nothing
Examples
- Example 1:
- Example 2:
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