allowGetIn: Difference between revisions

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


<h2 style="color:#000066">'''''unitArray'' allowGetIn ''allow'''''</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


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


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


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


'''Description:'''
|arg= global


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


|gr1= Object Manipulation


'''Example:'''
|gr2= Unit Control


[unitOne, unitTwo] '''allowGetIn''' false
|descr= Set if the units given in the list are allowed to enter vehicles.
{{Feature|informative|See [[AI Group Vehicle Management]] for more information.}}
 
|s1= unitArray [[allowGetIn]] allow
 
|p1= unitArray: [[Array]] of [[Object]]s
 
|p2= allow: [[Boolean]] - [[true]] allows the [[units]] to enter, [[false]] denies them
 
|r1= [[Nothing]]
 
|x1= <sqf>[_soldier1, _soldier2] allowGetIn true;</sqf>
 
|seealso= [[orderGetIn]]
}}

Latest revision as of 11:21, 13 May 2022

Hover & click on the images for description

Description

Description:
Set if the units given in the list are allowed to enter vehicles.
See AI Group Vehicle Management for more information.
Groups:
Object ManipulationUnit Control

Syntax

Syntax:
unitArray allowGetIn allow
Parameters:
unitArray: Array of Objects
allow: Boolean - true allows the units to enter, false denies them
Return Value:
Nothing

Examples

Example 1:
[_soldier1, _soldier2] allowGetIn true;

Additional Information

See also:
orderGetIn

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