OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: shadow99 on 25 Jun 2004, 07:04:19

Title: Group Naming?
Post by: shadow99 on 25 Jun 2004, 07:04:19
Alright. As we all know, by default each group is given a code-name, eg: Alpha Black One. My trouble is finding out which group is named which...  :-\

I could just shoot one of them, or something like that in testplay, but c'mon... there has to be proper way to find out what each group is named through the editor or something.

Furthermore, is there a way I can select which name these groups have? Eg: Name the player's group 'Alpha Black', so it appears in the briefing as 'Private Williams, Alpha Black Seven' or however it is...?

Thanks very much. This question's been killing me.
Title: Re:Group Naming?
Post by: h- on 25 Jun 2004, 07:55:35
1)
You can check in which group someone belongs by using the command group..
Test it by putting the following into some units init field:
hint format ["%1",group this]

Now when you preview you get a hint box saying something like WEST Alpha Black...

There might some better way, but anyhoo... This is a start :P

http://www.ofpec.com/editors/comref.php?letter=G#group


2)
Yes you can.
You put the following for example in the groupleaders (may work on any group member too) init field:
this setGroupID ["Bravo","GroupColor2"]

http://www.ofpec.com/editors/comref.php?letter=S#setGroupId
Title: Re:Group Naming?
Post by: shadow99 on 25 Jun 2004, 08:00:47
Hmm... very juicy. Thanks man, that helps a big heap.
Title: Re:Group Naming?
Post by: dmakatra on 25 Jun 2004, 08:09:15
2) If you want to create names you wanna check out a tute in ed depot about description.ext. Named "How to create characters" or summin like that.

:beat: *Gets Shot* :beat: