ACE3/addons/ui_units/functions/fnc_speedUnits.sqf
2022-09-01 13:36:00 -06:00

18 lines
353 B
Plaintext

#include "script_component.hpp"
params ["_vehicle"];
if (_vehicle isKindOf "Helicopter") exitWith {
[GVAR(heliSpeed), QGVAR(heliSpeed)]
};
if (_vehicle isKindOf "Plane") exitWith {
[GVAR(planeSpeed), QGVAR(planeSpeed)]
};
if (_vehicle isKindOf "Ship") exitWith {
[GVAR(seaSpeed), QGVAR(seaSpeed)]
};
[GVAR(landSpeed), QGVAR(landSpeed)]