needService: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 16: Line 16:


|x1= <sqf>_what = needService tank;</sqf>
|x1= <sqf>_what = needService tank;</sqf>
|x2= <sqf>onEachFrame { hintSilent str needService tank };</sqf>


|seealso= [[needReload]]
|seealso= [[needReload]]
}}
}}

Revision as of 13:00, 25 December 2022

Hover & click on the images for description
Only available in Development branch(es) until its release with Arma 3 patch v2.12.

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]. Range: 0-1, 0: no need, 1: maximum need

Examples

Example 1:
_what = needService tank;
Example 2:
onEachFrame { hintSilent str needService tank };

Additional Information

See also:
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