setUnloadInCombat: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<h3 style="display:none">Bottom Section</h3> " to "")
m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame( +[0-9])?|Game [Vv]ersion( +[0-9])?|Game Version \(number surrounded by NO SPACES\)|Arguments in MP|MP[Aa]rg|Multiplayer Arguments( \("local" or "global"\))?|Effects|Execution|Effects...)
Line 1: Line 1:
{{Command|Comments=
{{Command


| arma3 |Game name=
| arma3


|1.36|Game version=
|1.36


|arg= local |MPARGUMENTS=
|arg= local
|eff= global |MPeff=
|eff= global


|gr1= Unit Control |GROUP1=
|gr1= Unit Control


| If cargo or turret units ''should'' get out of vehicle when in combat. If '''true''', vehicle will stop and units will dismount. Vehicle must be local. |DESCRIPTION=
| If cargo or turret units ''should'' get out of vehicle when in combat. If '''true''', vehicle will stop and units will dismount. Vehicle must be local.


| vehicle [[setUnloadInCombat]] [allowCargo, allowTurrets] |SYNTAX=
| vehicle [[setUnloadInCombat]] [allowCargo, allowTurrets]


|p1= vehicle: [[Object]]|PARAMETER1=
|p1= vehicle: [[Object]]


|p2=[allowCargo, allowTurrets]: [[Array]] |Parameter2=
|p2=[allowCargo, allowTurrets]: [[Array]]


|p3= allowCargo: [[Boolean]]|PARAMETER2=
|p3= allowCargo: [[Boolean]]


|p4= allowTurrets: [[Boolean]]|PARAMETER3=
|p4= allowTurrets: [[Boolean]]


| [[Nothing]] |RETURNVALUE=
| [[Nothing]]


|x1= <code>_veh [[setUnloadInCombat]] [<nowiki/>[[true]], [[false]]];</code> |EXAMPLE1=
|x1= <code>_veh [[setUnloadInCombat]] [<nowiki/>[[true]], [[false]]];</code>


| [[canUnloadInCombat]]|SEEALSO=
| [[canUnloadInCombat]]


}}
}}

Revision as of 12:08, 18 January 2021

Hover & click on the images for description

Description

Description:
If cargo or turret units should get out of vehicle when in combat. If true, vehicle will stop and units will dismount. Vehicle must be local.
Groups:
Unit Control

Syntax

Syntax:
vehicle setUnloadInCombat [allowCargo, allowTurrets]
Parameters:
vehicle: Object
[allowCargo, allowTurrets]: Array
allowCargo: Boolean
allowTurrets: Boolean
Return Value:
Nothing

Examples

Example 1:
_veh setUnloadInCombat [true, false];

Additional Information

See also:
canUnloadInCombat

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