needService: Difference between revisions

From Bohemia Interactive Community
No edit summary
mNo edit summary
 
Line 12: Line 12:
|p1= vehicle: [[Object]]
|p1= vehicle: [[Object]]


|r1= [[Array]] format [repair, refuel, rearm]. Values are in range 0..1: 0: no need, 1: maximum need
|r1= [[Array]] with [repair, refuel, rearm]. Values are in range 0..1: 0: no need, 1: maximum need


|x1= <sqf>needService tank params ["_needRepair", "_needRefuel", "_needRearm"];</sqf>
|x1= <sqf>needService tank params ["_needRepair", "_needRefuel", "_needRearm"];</sqf>

Latest revision as of 09:52, 2 January 2026

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

Additional Information

See also:
allowService allowedService needReload

Notes

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