orderGetIn: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
m (Text replacement - "\|x([0-9])= <sqf>([^\/: ]+)([^;])<\/sqf>" to "|x$1= <sqf>$2$3;</sqf>")
 
(77 intermediate revisions by 16 users not shown)
Line 1: Line 1:
back to [[Scripting_Reference#O|COMREF]]
{{RV|type=command


<h2 style="color:#000066">''unitArray '''orderGetIn ''order'''''</h2>
|game1= ofp
|version1= 1.00


|game2= ofpe
|version2= 1.00


'''Operand types:'''
|game3= arma1
|version3= 1.00


'''unitArray:''' [[Array]]
|game4= arma2
|version4= 1.00


'''order:''' [[Boolean]]
|game5= arma2oa
|version5= 1.50


'''Type of returned value:'''
|game6= tkoh
|version6= 1.00


[[Nothing]]
|game7= arma3
|version7= 0.50


'''Description:'''
|arg= local


Force getting in of vehicles to all units in the list.
|eff= global


|gr1= Unit Control


'''Example:'''
|descr= Force all units in the array to get in or out of their assigned vehicles. Units must be assigned to a vehicle before this command will do anything.
{{Feature|informative|See [[AI Group Vehicle Management]] for more information.}}


[unitOne, unitTwo] '''orderGetIn''' [[true]]  
|s1= unitArray [[orderGetIn]] order


|p1= unitArray: [[Array]]


'''Comments'''
|p2= order: [[Boolean]]


'''Note:''' Units must be assigned to a vehicle before this command will do anything.
|r1= [[Nothing]]


See these commands for more info on this:
|x1= <sqf>[_unitOne, _unitTwo] orderGetIn true;</sqf>


* [[assignAsCargo]]
|x2= <sqf>[_unitOne, _unitTwo] orderGetIn false;</sqf>
* [[assignAsCommander]]
 
* [[assignAsDriver]]
|seealso= [[allowGetIn]] [[addVehicle]] [[assignAsCargo]] [[assignAsCommander]] [[assignAsDriver]] [[assignAsGunner]]
* [[assignAsGunner]]
}}

Latest revision as of 23:43, 28 June 2022

Hover & click on the images for description

Description

Description:
Force all units in the array to get in or out of their assigned vehicles. Units must be assigned to a vehicle before this command will do anything.
See AI Group Vehicle Management for more information.
Groups:
Unit Control

Syntax

Syntax:
unitArray orderGetIn order
Parameters:
unitArray: Array
order: Boolean
Return Value:
Nothing

Examples

Example 1:
[_unitOne, _unitTwo] orderGetIn true;
Example 2:
[_unitOne, _unitTwo] orderGetIn false;

Additional Information

See also:
allowGetIn addVehicle assignAsCargo assignAsCommander assignAsDriver assignAsGunner

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