In the case of infantry units, it is recommended to use getSpeed for better and more accurate results:
_unit forceSpeed (_unit getSpeed "NORMAL"); // force the unit to run
Command in Object Manipulation
Also available as Markdown and JSON, or read the original wiki page.
Force the speed limit on given object (object will never attempt to move faster than given by forceSpeed). Use negative value to return to default behaviour.
Important
This has no effect on players.
object forceSpeed speed
Parameters:
Returns: Nothing
_helicopter forceSpeed 150;
_vtol forceSpeed 0; // vtol stop and hover
_vtol forceSpeed -1; // vtol resume
getForcedSpeed · forceWalk · isWalking · isForcedWalk · getSpeed · limitSpeed
In the case of infantry units, it is recommended to use getSpeed for better and more accurate results:
_unit forceSpeed (_unit getSpeed "NORMAL"); // force the unit to run