OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Captain Crunch on 06 Jun 2003, 16:57:22

Title: Group names?
Post by: Captain Crunch on 06 Jun 2003, 16:57:22
How can I name or find out the name of a group?

For example:

A non playable enemy group placed from the editor, not with the F2 key but single units placed one by one and then grouped.

What I would like to do is SetPos the group from a place to another if trigger is activated. Not having to do all units one at a time.

I've check the comrefs but I still don't get it! (I have a cooked potatoe at the place of the brains) :P

Thanx! ;)
Title: Re:Group names?
Post by: Tomb on 06 Jun 2003, 17:00:11
Morons = units group this

put that in the INIT field of ONE grp member.

Then put the following in a trigger:

"_x setpos getpos G1" foreach morons  :-*

(where "G1" is a named gameLogic)
Title: Re:Group names?
Post by: macguba on 06 Jun 2003, 17:06:19
It makes no difference whether a group is created using F2 or manually.

If you do create a group with F2, be careful - sometimes there are two units on top of each other, so it looks like there are eight but in fact there are nine.
Title: Re:Group names?
Post by: Messiah on 06 Jun 2003, 17:08:08
that was resolved in version 1.75
Title: Re:Group names?
Post by: macguba on 06 Jun 2003, 17:18:24
Marvellous!   What will they think of next?
Title: Re:Group names?
Post by: Captain Crunch on 06 Jun 2003, 17:29:11
lol


    Thanx guys!

Title: Re:Group names?
Post by: LCD on 06 Jun 2003, 17:36:20
did it work ? (have feelin it doid ;))

solve da topic ;D

LCD OUT