group: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (template:command argument fix)
(29 intermediate revisions by 15 users not shown)
Line 1: Line 1:
[[Category:Scripting Commands|GROUP]]
{{Command|= Comments
[[Category:Scripting Commands OFP 1.97|GROUP]]
____________________________________________________________________________________________
[[Category:Scripting Commands OFP 1.46|GROUP]]
 
[[Category:Scripting Commands ArmA|GROUP]]
| ofp |= Game name
 
|1.00|= Game version


|arg= global |= Arguments in MP
____________________________________________________________________________________________


<h2 style="color:#000066"> '''group ''obj'''''</h2>
| Returns the group a unit is assigned to. |DESCRIPTION=
____________________________________________________________________________________________


| '''group''' object |SYNTAX=


'''Operand types:'''


'''obj:''' [[Object]]
|p1= object: [[Object]] |PARAMETER1=
| [[Group]] - 
For dead units, the returned group equals [[grpNull]]. |RETURNVALUE=
____________________________________________________________________________________________
 
|x1= <code>_playerGrp <nowiki>=</nowiki> [[group]] [[player]]</code> |EXAMPLE1=
____________________________________________________________________________________________


'''Type of returned value:'''
|pr= In MP the command is not initialised in functions called by initline or init eventhandlers.|=


[[Group]]
| [[local]], [[join]], [[leader]], [[units]], [[allGroups]], [[groupID]], [[setGroupId]], [[setGroupIdGlobal]] |SEEALSO=


'''Description:'''
}}


Group in which given unit is assigned.<br>
<h3 style="display:none">Notes</h3>
For dead units: [[grpNull]]
<dl class="command_description">
<!-- Note Section BEGIN -->


<dd class="notedate">Posted on August 19, 2006 - 12:00
<dt class="note">'''[[User:jafarin|jafarin]]'''<dd class="note">
Few rules about group in OFP:R.<br>
1) When last man in group die or is moved to other group, group will be destroyed, and it can't be used anymore.<br>
2) 1st man joined to empty group will be group leader.<br>


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


'''group''' [[player]] = '''group''' [[leader]] [[player]]
<h3 style="display:none">Bottom Section</h3>
[[Category:Scripting Commands|GROUP]]
[[Category:Scripting Commands OFP 1.99|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands OFP 1.96|GROUP]]
[[Category:Scripting Commands OFP 1.46|GROUP]]
[[Category:Scripting Commands ArmA|GROUP]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]
[[Category:Command_Group:_Groups|{{uc:{{PAGENAME}}}}]]
[[Category:Command_Group:_Object_Information|{{uc:{{PAGENAME}}}}]]

Revision as of 15:40, 7 April 2019

Hover & click on the images for description

Description

Description:
Returns the group a unit is assigned to.
Problems:
In MP the command is not initialised in functions called by initline or init eventhandlers.
Groups:
Uncategorised

Syntax

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

Examples

Example 1:
_playerGrp = group player

Additional Information

See also:
localjoinleaderunitsallGroupsgroupIDsetGroupIdsetGroupIdGlobal

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

Posted on August 19, 2006 - 12:00
jafarin
Few rules about group in OFP:R.
1) When last man in group die or is moved to other group, group will be destroyed, and it can't be used anymore.
2) 1st man joined to empty group will be group leader.

Bottom Section