Arma 3 Scripting

Function in Object Manipulation

BIS_fnc_absSpeed

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

Description

Returns absolute speed of a vehicle in kilometres per hour (km/h).

Syntax

Object call BIS_fnc_absSpeed

Parameters:

Returns: Number

Examples

Example 1

if (((vehicle player) call BIS_fnc_absSpeed) > 150) then
{
    hint "There goes my driver's license :(";
};

Example 2

_kmh = (vehicle player) call BIS_fnc_absSpeed;
_mph = _kmh / 1.609344; // miles per hour

See also

speed