group: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
[[Category:Scripting Commands|GROUP]]
{{Command|= Comments
[[Category:Scripting Commands OFP 1.96|GROUP]]
____________________________________________________________________________________________
[[Category:Scripting Commands OFP 1.46|GROUP]]
[[Category:Scripting Commands ArmA|GROUP]]


| ofp |= Game name


<h2 style="color:#000066"> '''group ''obj'''''</h2>
|1.00|= Game version


|arg= global |= Arguments in MP
____________________________________________________________________________________________


'''Operand types:'''
| Returns the group a unit is assigned to. |= Description
____________________________________________________________________________________________


'''obj:''' [[Object]]
| '''group''' unit |= Syntax


'''Type of returned value:'''
|p1= unit: [[Object]] |= Parameter 1


[[Group]]
| [[Group]]
For dead units, the returned group equals [[grpNull]]. |= Return value
____________________________________________________________________________________________
 
|x1= <pre>playerGrp = group player</pre> |= Example 1
____________________________________________________________________________________________


'''Description:'''
| [[join]], [[leader]] |= See also


Group in which given unit is assigned.<br>
}}
For dead units: [[grpNull]]


<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->


'''Example:'''
<!-- Note Section END -->
</dl>


'''group''' [[player]] = '''group''' [[leader unit|leader]] [[player]]
<h3 style="display:none">Bottom Section</h3>
[[Category:Scripting Commands|GROUP]]
[[Category:Scripting Commands OFP 1.96|GROUP]]
[[Category:Scripting Commands OFP 1.46|GROUP]]
[[Category:Scripting Commands ArmA|GROUP]]

Revision as of 00:26, 2 August 2006

Hover & click on the images for description

Description

Description:
Returns the group a unit is assigned to.
Groups:
Uncategorised

Syntax

Syntax:
group unit
Parameters:
unit: Object
Return Value:
Group - For dead units, the returned group equals grpNull.

Examples

Example 1:
playerGrp = group player

Additional Information

See also:
joinleader

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