units: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
 
(merged syntax variations)
Line 1: Line 1:
'''units''' can refer to these scripting commands:
{{Command|= Comments
*[[units grp]] - Returns an array with all the units in the group.
____________________________________________________________________________________________
*[[units unit]] - Returns an array with all the units in the group of the given object.


{{Disambig}}
| ofp |= Game name
 
|1.00|= Game version
____________________________________________________________________________________________
 
| Returns an array with all the units in the group or unit.<br>For a destroyed object an empty array is returned. |= Description
____________________________________________________________________________________________
 
| [[Array]] <nowiki>=</nowiki> '''units''' groupOrunit |= Syntax
 
|p1 = groupOrunit: [[Group]] or [[Object]]|= Parameter 1
 
| [[Array]] |= Return value
 
____________________________________________________________________________________________
 
|x1 = [[player]] in units [[group]] [[player]] 
|  |= See also
 
}}
 
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->
 
<!-- Note Section END -->
</dl>
 
<h3 style="display:none">Bottom Section</h3>
 
[[Category:Scripting Commands|UNITSGRP]]
[[Category:Scripting Commands OFP 1.96|UNITSGRP]]
[[Category:Scripting Commands OFP 1.46|UNITSGRP]]
[[Category:Scripting Commands ArmA|UNITSGRP]]
[[Category:Scripting Commands ArmA2|UNITSGRP]]

Revision as of 18:05, 3 June 2009

Hover & click on the images for description

Description

Description:
Returns an array with all the units in the group or unit.
For a destroyed object an empty array is returned.
Groups:
Uncategorised

Syntax

Syntax:
Array = units groupOrunit
Parameters:
groupOrunit: Group or Object
Return Value:
Array

Examples

Example 1:
player in units group player

Additional Information

See also:
See also needed

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