needService: Difference between revisions
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) (Created page with "{{RV|type=command |game1= arma3 |version1= 2.12 |branch= dev |gr1= Object Manipulation |descr= Return array with how much vehicle needs [repairing, refueling, rearming] |s...") |
Cat Harsis (talk | contribs) m (2.12 released, no longer only dev branch) |
||
(6 intermediate revisions by 2 users not shown) | |||
Line 3: | Line 3: | ||
|game1= arma3 | |game1= arma3 | ||
|version1= 2.12 | |version1= 2.12 | ||
|gr1= Object Manipulation | |gr1= Object Manipulation | ||
|descr= | |descr= Returns array with how much vehicle needs repairing, refueling and rearming. | ||
|s1= [[needService]] vehicle | |s1= [[needService]] vehicle | ||
Line 13: | Line 12: | ||
|p1= vehicle: [[Object]] | |p1= vehicle: [[Object]] | ||
|r1= [[ | |r1= [[Array]] in format [repair, refuel, rearm]. Values are in range 0..1: 0: no need, 1: maximum need | ||
|x1= <sqf> | |x1= <sqf>needService tank params ["_needRepair", "_needRefuel", "_needRearm"];</sqf> | ||
|seealso= [[needReload]] | |x2= <sqf>onEachFrame { hintSilent str needService vehicle player };</sqf> | ||
|seealso= [[allowService]] [[allowedService]] [[needReload]] | |||
}} | }} |
Latest revision as of 15:43, 28 February 2023
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:
- 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