needService

From Bohemia Interactive Community
Revision as of 16:43, 28 February 2023 by Cat Harsis (talk | contribs) (2.12 released, no longer only dev branch)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Hover & click on the images for description

Description

Description:
Returns array with how much vehicle needs repairing, refueling and rearming.
Groups:
Object Manipulation

Syntax

Syntax:
needService vehicle
Parameters:
vehicle: Object
Return Value:
Array in format [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:

Additional Information

See also:
allowService allowedService needReload

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note