needService: Difference between revisions
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) No edit summary |
Killzone Kid (talk | contribs) No edit summary |
||
Line 7: | Line 7: | ||
|gr1= Object Manipulation | |gr1= Object Manipulation | ||
|descr= Returns array with how much vehicle needs | |descr= Returns array with how much vehicle needs repairing, refueling and rearming. | ||
|s1= [[needService]] vehicle | |s1= [[needService]] vehicle | ||
Line 13: | Line 13: | ||
|p1= vehicle: [[Object]] | |p1= vehicle: [[Object]] | ||
|r1= [[ | |r1= [[Array]] in format [repair, refuel, rearm]. Range: 0-1, 0: no need, 1: maximum need | ||
|x1= <sqf>_what = needService tank;</sqf> | |x1= <sqf>_what = needService tank;</sqf> |
Revision as of 12:58, 25 December 2022
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:
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