allowedService

From Bohemia Interactive Community
Revision as of 22:46, 28 December 2022 by Killzone Kid (talk | contribs) (Created page with "{{RV|type=command |game1= arma3 |version1= 2.12 |branch= dev |gr1= Object Manipulation |descr= Returns which type of repair/refuel/rearm service is allowed. There are 2 typ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
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 which type of repair/refuel/rearm service is allowed. There are 2 types, manual and auto. It could be set to none, auto only, manual only or both. When manual is allowed the action icon is shown. The engine default for historic reasons is both, auto and manual.
Groups:
Object Manipulation

Syntax

Syntax:
allowedService vehicle
Parameters:
vehicle: Object - supply vehicle, i.e. ammo truck
Return Value:
Number - 0:none, 1:auto, 2:manual, 3:both, -1:unsupported

Examples

Example 1:
allowedService ammoTruck;

Additional Information

See also:
allowService needService

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