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>")
 
(74 intermediate revisions by 16 users not shown)
Line 1: Line 1:
[[Category:Scripting Commands|O]]
{{RV|type=command
[[Category:Scripting Commands OFP 1.97|O]]
[[Category:Scripting Commands OFP 1.46|O]]
[[Category:Scripting Commands ArmA|O]]


|game1= ofp
|version1= 1.00


<h2 style="color:#000066">''unitArray '''orderGetIn ''order'''''</h2>
|game2= ofpe
|version2= 1.00


|game3= arma1
|version3= 1.00


'''Operand types:'''
|game4= arma2
|version4= 1.00


'''unitArray:''' [[Array]]
|game5= arma2oa
|version5= 1.50


'''order:''' [[Boolean]]
|game6= tkoh
|version6= 1.00


'''Type of returned value:'''
|game7= arma3
|version7= 0.50


[[Nothing]]
|arg= local


'''Description:'''
|eff= global


Force getting in of vehicles to all units in the list.
|gr1= Unit Control


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


'''Example:'''
|s1= unitArray [[orderGetIn]] order


[unitOne, unitTwo] '''orderGetIn''' [[true]]  
|p1= unitArray: [[Array]]


|p2= order: [[Boolean]]


'''Comments'''
|r1= [[Nothing]]


'''Note:''' Units must be assigned to a vehicle before this command will do anything.
|x1= <sqf>[_unitOne, _unitTwo] orderGetIn true;</sqf>


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


* [[assignAsCargo]]
|seealso= [[allowGetIn]] [[addVehicle]] [[assignAsCargo]] [[assignAsCommander]] [[assignAsDriver]] [[assignAsGunner]]
* [[assignAsCommander]]
}}
* [[assignAsDriver]]
* [[assignAsGunner]]

Latest revision as of 22: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