setGroupId: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 4: Line 4:
[[Category:Scripting Commands ArmA|S]]
[[Category:Scripting Commands ArmA|S]]


back to [[Scripting_Reference#S|COMREF]]


<h2 style="color:#000066">'''''group'' setGroupId ''id'''''</h2>
<h2 style="color:#000066">'''''group'' setGroupId ''id'''''</h2>

Revision as of 10:38, 23 April 2006


group setGroupId id


Operand types:

group: Object or Group

id: Array

Type of returned value:

Nothing

Description:

Set group identity.

Id format is [letter, color, picture] or [letter, color].
Letter is one of:

  • "Alpha"
  • "Bravo"
  • "Charlie"
  • "Delta"
  • "Echo"
  • "Foxtrot"
  • "Golf"
  • "Hotel"
  • "Kilo"

Colour can be one of "GroupColor0" to "GroupColor7".


Example:

group1 setGroupId ["Delta","GroupColor4"]


Comments:

Additional values for letter are:

  • "Yankee"
  • "Zulu"
  • "Buffalo"
  • "Convoy"
  • "Guardian"
  • "November"
  • "Two"
  • "Three"

Color can also be set to "Six".

Following is a list of GroupColors:

  • 0 - No colour
  • 1 - Black
  • 2 - Red
  • 3 - Green
  • 4 - Blue
  • 5 - Yellow
  • 6 - Orange
  • 7 - Pink

Note that this does not name the group.

To call a group "grp1", for example, write this in the init field of the group leader:

grp1 = group this