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>")
 
(78 intermediate revisions by 16 users not shown)
Line 1: Line 1:
<h2 style="color:#000066">''unitArray '''orderGetIn ''order'''''</h2>
{{RV|type=command


'''Operand types:'''
|game1= ofp
|version1= 1.00


unitArray: [[Array]]
|game2= ofpe
|version2= 1.00


order: [[Boolean]]
|game3= arma1
|version3= 1.00


'''Type of returned value:'''
|game4= arma2
|version4= 1.00


Nothing
|game5= arma2oa
|version5= 1.50


'''Description:'''
|game6= tkoh
|version6= 1.00


Force getting in vehicles to all units in the list.
|game7= arma3
|version7= 0.50


'''Example:'''
|arg= local


[unitOne, unitTwo] '''orderGetIn''' true
|eff= global


|gr1= Unit Control


'''Comments'''
|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.}}


''Toadlife''
|s1= unitArray [[orderGetIn]] order


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


See these commands for more info on this:
|p2= order: [[Boolean]]


    * [[assignAsCargo]]
|r1= [[Nothing]]
    * [[assignAsCommander]]
 
    * [[assignAsDriver]]
|x1= <sqf>[_unitOne, _unitTwo] orderGetIn true;</sqf>
    * [[assignAsGunner]]
 
|x2= <sqf>[_unitOne, _unitTwo] orderGetIn false;</sqf>
 
|seealso= [[allowGetIn]] [[addVehicle]] [[assignAsCargo]] [[assignAsCommander]] [[assignAsDriver]] [[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