groupId

From Bohemia Interactive Community
Revision as of 13:37, 18 January 2023 by Lou Montana (talk | contribs) (Add 2.12 syntax)
Jump to navigation Jump to search
Hover & click on the images for description

Description

Description:
Returns group name.
Groups:
Groups

Syntax

Syntax:
groupId group
Parameters:
group: Group
Return Value:
String

Alternative Syntax

Syntax:
groupId unit
Parameters:
unit: Object - a group's unit
Return Value:
Number - the unit's group ID (e.g "2, taking command")

Examples

Example 1:
_name = groupId group player;
Example 2:
private _unitGroupId = groupId player;

Additional Information

See also:
setGroupId setGroupIdGlobal group

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