groupId: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame( +[0-9])?|Game [Vv]ersion( +[0-9])?|Game Version \(number surrounded by NO SPACES\)|Arguments in MP|Multiplayer Arguments( \("local" or "global"\))?|Effects|Execution|Effects? in MP|M...) |
Lou Montana (talk | contribs) m (Fix) |
||
(17 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{RV|type=command | ||
| arma3 | |game1= arma3 | ||
|version1= 0.50 | |||
|gr1= Groups | |gr1= Groups | ||
|arg= global | |arg= global | ||
| Returns group name. | |descr= Returns a group's name or a unit's group ID number. | ||
| | |s1= [[groupId]] group | ||
|p1= group: [[Group]] | |p1= group: [[Group]] | ||
| [[String]] | |r1= [[String]] - the group's name (e.g "Alpha Red") | ||
|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; // e.g "B Alpha 1-1"</sqf> | ||
|x2= <sqf>private _unitGroupId = groupId player; // e.g 3 (number, not a string)</sqf> | |||
|seealso= [[setGroupId]] [[setGroupIdGlobal]] [[group]] | |||
}} | |||
[[ |
Latest revision as of 12:45, 18 January 2023
Description
- Description:
- Returns a group's name or a unit's group ID number.
- Groups:
- Groups
Syntax
- Syntax:
- groupId group
- Parameters:
- group: Group
- Return Value:
- String - the group's name (e.g "Alpha Red")
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