setUnloadInCombat: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Arma[ _]3(\|.*)\]\]" to "{{GameCategory|arma3|Scripting Commands}}")
m (Text replacement - "_{10,} " to "")
Line 1: Line 1:
{{Command|Comments=
{{Command|Comments=
____________________________________________________________________________________________


| arma3 |Game name=
| arma3 |Game name=
Line 10: Line 9:


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


| 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. |DESCRIPTION=
____________________________________________________________________________________________


| vehicle [[setUnloadInCombat]] [allowCargo, allowTurrets] |SYNTAX=
| vehicle [[setUnloadInCombat]] [allowCargo, allowTurrets] |SYNTAX=
Line 26: Line 23:


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


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


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

Revision as of 03:51, 17 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

Notes

Bottom Section