OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: limmy3 on 04 Oct 2005, 00:45:54
-
Hi,
unfortunally I had no success for seaching for setGroupID. :-[
Do I write the SetGroupID in the description.ext. ???
If yes, and you know the answer please make an example. ;)
Thanks
-
SetGroupID sets the name of the group (ex. Alpha Black, Charlie Red, Yankee, Zulu, etc...). The command goes like this:
unit SetGroupID ["Name","Color"]
It can be entered anywhere a command can, init field, trigger, script, etc...
The names and colors are defined in the CfgWorlds section of the config.bin and additional ones can be added in addons. Colors don't necessarily have to be colors either, they can be names too, but all of the default ones are colors (except for one). The default ones are:
Names:
Alpha
Bravo
Charlie
Delta
Echo
Foxtrot
Golf
Hotel
November
Kilo
Yankee
Zulu
Colors:
GroupColor0 - Nothing (so the group ID will be just the name)
GroupColor1 - Black
GroupColor2 - Red
GroupColor3 - Green
GroupColor4 - Blue
GroupColor5 - Yellow
GroupColor6 - Orange
GroupColor7 - Pink
Six - Just "Six"
-
Ok, here's how I found it. You should take a good look through this stuff as there are lots of interesting commands available.
Click the link called "EDITOR'S DEPOT" at the top of the page.
Click "COMMANDS" on the tab on the left hand side of the page.
Click "S" on the alphabet near the top of the page.
Click SetGroupID in the list that goes down the page.
If you're lazy though, click this.
http://www.ofpec.com/editors/comref.php?letter=S#setGroupId