Arma 3 Scripting

Command in Object Manipulation

needService

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

Description

Returns array with how much vehicle needs repairing, refueling and rearming.

Syntax

needService vehicle

Parameters:

Returns: Array with [repair, refuel, rearm]. Values are in range 0..1: 0: no need, 1: maximum need

Examples

Example 1

needService tank params ["_needRepair", "_needRefuel", "_needRearm"];

Example 2

onEachFrame { hintSilent str needService vehicle player };

See also

allowService · allowedService · needReload