group: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(see also)
m (template:command argument fix)
Line 9: Line 9:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Returns the group a unit is assigned to. |= Description
| Returns the group a unit is assigned to. |DESCRIPTION=
____________________________________________________________________________________________
____________________________________________________________________________________________


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




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


|pr= In MP the command is not initialised in functions called by initline or init eventhandlers.|=
|pr= In MP the command is not initialised in functions called by initline or init eventhandlers.|=


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


}}
}}

Revision as of 14: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