https://community.bistudio.com/wiki?title=Talk:setGroupId&feed=atom&action=historyTalk:setGroupId - Revision history2024-03-28T13:36:32ZRevision history for this page on the wikiMediaWiki 1.39.0https://community.bistudio.com/wiki?title=Talk:setGroupId&diff=46395&oldid=prevawotter: sp2009-04-06T07:01:43Z<p>sp</p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 08:01, 6 April 2009</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l1">Line 1:</td>
<td colspan="2" class="diff-lineno">Line 1:</td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>The ArmA variant of setGroupId has new abilities. As can be seen in the syntax description, it can take a parameter array</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>The ArmA variant of setGroupId has new abilities. As can be seen in the syntax description, it can take a parameter array</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div> [<del style="font-weight: bold; text-decoration: none;">nameFomat</del>, nameParam1, ...]</div></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div> [<ins style="font-weight: bold; text-decoration: none;">nameFormat</ins>, nameParam1, ...]</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>The ''nameFormat'' part is a format string that determines the parameter(s) that follow it. An example:</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>The ''nameFormat'' part is a format string that determines the parameter(s) that follow it. An example:</div></td></tr>
</table>awotterhttps://community.bistudio.com/wiki?title=Talk:setGroupId&diff=33262&oldid=prevKillswitch: Group name format string findings noted.2007-04-21T16:21:25Z<p>Group name format string findings noted.</p>
<p><b>New page</b></p><div>The ArmA variant of setGroupId has new abilities. As can be seen in the syntax description, it can take a parameter array<br />
<br />
[nameFomat, nameParam1, ...]<br />
<br />
The ''nameFormat'' part is a format string that determines the parameter(s) that follow it. An example:<br />
<br />
player setGroupid ["%GroupSquad-%GroupPlatoon-%GroupCompany","Squad1","Platoon2","CompanyCharlie"];<br />
player sideChat "Hello";<br />
<br />
This will result in my player character saying<br />
<br />
1-2-C 1 (Killswitch): "HELLO"<br />
<br />
One can also get the old OFP style group names by<br />
<br />
player setGroupid ["%GroupNames %GroupColors","November","GroupColor3"];<br />
player sideChat "Hello";<br />
<br />
which results in<br />
<br />
November Green 1 (Killswitch): "HELLO"<br />
<br />
Take a look at the main ArmA config, in ''class CfgWorlds'' and look at<br />
* the ''groupNameFormat'' string.<br />
* the classes ''GroupSquad'', ''GroupPlatoon'', ''GroupCompany'' and their contents.<br />
* the classes ''GroupNames'' and ''GroupColors''.<br />
<br />
I wasn't sure if all of this was suitable for a note, so I put my findings here on the discussion page instead.<br />
<br />
[[User:Killswitch|Killswitch]] 18:21, 21 April 2007 (CEST)<br />
----</div>Killswitch