groupId: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\|x([0-9])= *<code>([^<]*)<\/code>" to "|x$1= <sqf>$2</sqf>") |
Lou Montana (talk | contribs) (Add 2.12 syntax) |
||
Line 16: | Line 16: | ||
|r1= [[String]] | |r1= [[String]] | ||
|x1= <sqf>_name = groupId | |s2= [[groupId]] unit | ||
|s2since= arma3 2.12 | |||
|p21= unit: [[Object]] - a group's unit | |||
|r2= [[Number]] - the unit's group ID (e.g "'''2''', taking command") | |||
|x1= <sqf>_name = groupId group player;</sqf> | |||
|x2= <sqf>private _unitGroupId = groupId player;</sqf> | |||
|seealso= [[setGroupId]] [[setGroupIdGlobal]] [[group]] | |seealso= [[setGroupId]] [[setGroupIdGlobal]] [[group]] | ||
}} | }} |
Revision as of 12:37, 18 January 2023
Description
- Description:
- Returns group name.
- Groups:
- Groups
Syntax
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:
- Example 2:
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