needService: Difference between revisions
BrettMayson (talk | contribs) No edit summary |
BrettMayson (talk | contribs) mNo edit summary |
||
| Line 12: | Line 12: | ||
|p1= vehicle: [[Object]] | |p1= vehicle: [[Object]] | ||
|r1= [[Array]] | |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
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:
- 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