setGroupId: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
[[Category:Scripting Commands|SETGROUPID]]
[[Category:Scripting Commands|SETGROUPID]]
[[Category:Scripting Commands OFP 1.97|SETGROUPID]]
[[Category:Scripting Commands OFP 1.96|SETGROUPID]]
[[Category:Scripting Commands OFP 1.46|SETGROUPID]]
[[Category:Scripting Commands OFP 1.46|SETGROUPID]]
[[Category:Scripting Commands ArmA|SETGROUPID]]
[[Category:Scripting Commands ArmA|SETGROUPID]]

Revision as of 21:30, 1 June 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