Arma 3 Scripting

Command in Object Manipulation

forceSpeed

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

Description

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.

Syntax

object forceSpeed speed

Parameters:

Returns: Nothing

Examples

Example 1

_helicopter forceSpeed 150;

Example 2

_vtol forceSpeed 0; // vtol stop and hover

Example 3

_vtol forceSpeed -1; // vtol resume

See also

getForcedSpeed · forceWalk · isWalking · isForcedWalk · getSpeed · limitSpeed

Community notes

Leopard20

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