allowService: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Created page with "{{RV|type=command |game1= arma3 |version1= 2.12 |branch= dev |gr1= Object Manipulation |descr= Sets which type of repair/refuel/rearm service is allowed. There are 2 types,...")
 
m (2.12 released, no longer only dev branch)
 
(2 intermediate revisions by 2 users not shown)
Line 3: Line 3:
|game1= arma3
|game1= arma3
|version1= 2.12
|version1= 2.12
|branch= dev
 
|arg= local
|eff= global


|gr1= Object Manipulation
|gr1= Object Manipulation


|descr= Sets 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.
|descr= Sets which type of repair/refuel/rearm service is allowed. The two available types are manual, where the action is displayed to the user, and auto, where the service happens within distance.
The engine default is both (manual and auto) for historic reasons.


|s1= vehicle [[allowService]] type  
|s1= vehicle [[allowService]] type  


|p1= vehicle: [[Object]] - supply vehicle, i.e. ammo truck
|p1= vehicle: [[Object]] - supply vehicle, i.e. ammo truck
|p2= type: [[Number]] - 0:none, 1:auto, 2:manual, 3:both
 
|p2= type: [[Number]] - 0: none, 1: auto, 2: manual, 3: both


|r1= [[Nothing]]
|r1= [[Nothing]]


|x1= <sqf>ammoTruck allowService 0;</sqf>
|x1= <sqf>ammoTruck allowService 0;</sqf>


|seealso= [[allowedService]] [[needService]]
|seealso= [[allowedService]] [[needService]]
}}
}}

Latest revision as of 15:43, 28 February 2023

Hover & click on the images for description

Description

Description:
Sets which type of repair/refuel/rearm service is allowed. The two available types are manual, where the action is displayed to the user, and auto, where the service happens within distance. The engine default is both (manual and auto) for historic reasons.
Groups:
Object Manipulation

Syntax

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

Examples

Example 1:
ammoTruck allowService 0;

Additional Information

See also:
allowedService 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