Difference between revisions of "setGroupId"

From Bohemia Interactive Community
Jump to navigation Jump to search
m
Line 1: Line 1:
[[Category:Scripting Commands|SETGROUPID]]
+
{{Command|= Comments
[[Category:Scripting Commands OFP 1.96|SETGROUPID]]
+
____________________________________________________________________________________________
[[Category:Scripting Commands OFP 1.46|SETGROUPID]]
 
[[Category:Scripting Commands ArmA|SETGROUPID]]
 
 
 
 
 
<h2 style="color:#000066">'''''group'' setGroupId ''id'''''</h2>
 
  
 +
| ofp |= Game name
  
'''Operand types:'''
+
|1.00|= Game version
 
+
____________________________________________________________________________________________
'''group:''' [[Object or Group]]
 
 
 
'''id:''' [[Array]]
 
 
 
'''Type of returned value:'''
 
 
 
[[Nothing]]
 
 
 
'''Description:'''
 
 
 
Set '''group identity'''.
 
 
 
'''Id''' format is '''''[letter, color, picture]''''' or '''''[letter, color]'''''.<br>
 
'''Letter''' is one of:
 
  
 +
| Set group identity. Id format is [letter, color, picture] or [letter, color].
 +
Letter is one of:
 
* '''"Alpha"'''
 
* '''"Alpha"'''
 
* '''"Bravo"'''
 
* '''"Bravo"'''
Line 34: Line 18:
 
* '''"Hotel"'''
 
* '''"Hotel"'''
 
* '''"Kilo"'''
 
* '''"Kilo"'''
 +
* '''"Yankee"'''
  
'''Colour''' can be one of "GroupColor0" to "GroupColor7".
 
 
 
'''Example:'''
 
 
group1 '''setGroupId''' ["Delta","GroupColor4"]
 
 
 
'''Comments:'''
 
 
Additional values for '''letter''' are:
 
 
* '''"Yankee"'''
 
 
* '''"Zulu"'''
 
* '''"Zulu"'''
 
* '''"Buffalo"'''
 
* '''"Buffalo"'''
Line 56: Line 28:
 
* '''"Three"'''
 
* '''"Three"'''
  
'''Color''' can also be set to '''"Six"'''.
+
Colour can be one of "GroupColor0" to "GroupColor7":
 
 
Following is a list of GroupColors:
 
 
 
 
* '''0''' - No colour
 
* '''0''' - No colour
 
* '''1''' - Black
 
* '''1''' - Black
Line 67: Line 36:
 
* '''5''' - Yellow
 
* '''5''' - Yellow
 
* '''6''' - Orange
 
* '''6''' - Orange
* '''7''' - Pink
+
* '''7''' - Pink  
 +
|= Description
 +
____________________________________________________________________________________________
 +
 
 +
| group '''setGroupId''' id |= Syntax
 +
 
 +
|p1= group: [[Object or Group]] |= Parameter 1
 +
 
 +
|p2= id: [[Array]] |= Parameter 2
 +
 
 +
| [[Nothing]] |= Return value
 +
____________________________________________________________________________________________
 +
 
 +
|x1= <pre>group1 setGroupId ["Delta","GroupColor4"]</pre> |= Example 1
 +
____________________________________________________________________________________________
 +
 
 +
|  |= See also
  
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 grp|leader]]:
+
<h3 style="display:none">Notes</h3>
 +
<dl class="command_description">
 +
<!-- Note Section BEGIN -->
  
grp1 = [[group]] '''this'''
+
<!-- Note Section END -->
 +
</dl>
 +
 
 +
<h3 style="display:none">Bottom Section</h3>
 +
Old Notes (temporary):
 +
 
 +
Additional values for letter are: Color can also be set to "Six". Following is a list of GroupColors: 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
 +
 
 +
 
 +
[[Category:Scripting Commands|SETGROUPID]]
 +
[[Category:Scripting Commands OFP 1.96|SETGROUPID]]
 +
[[Category:Scripting Commands OFP 1.46|SETGROUPID]]
 +
[[Category:Scripting Commands ArmA|SETGROUPID]]

Revision as of 00:19, 2 August 2006

Introduced with Operation Flashpoint version 1.00
  

Click on the images for descriptions

Introduced in

Game:
Operation Flashpoint
Version:
1.00

Description

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"
  • "Yankee"
  • "Zulu"
  • "Buffalo"
  • "Convoy"
  • "Guardian"
  • "November"
  • "Two"
  • "Three"
Colour can be one of "GroupColor0" to "GroupColor7":
  • 0 - No colour
  • 1 - Black
  • 2 - Red
  • 3 - Green
  • 4 - Blue
  • 5 - Yellow
  • 6 - Orange
  • 7 - Pink

Syntax

Syntax:
group setGroupId id
Parameters:
group: Object or Group
id: Array
Return Value:
Nothing

Examples

Example 1:
group1 setGroupId ["Delta","GroupColor4"]

Additional Information

Multiplayer:
-
See also:
See also needed

Notes

Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To

Notes

Bottom Section

Old Notes (temporary):

Additional values for letter are: Color can also be set to "Six". Following is a list of GroupColors: 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