OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: yankme on 30 Oct 2005, 01:16:11

Title: setGroupId
Post by: yankme on 30 Oct 2005, 01:16:11
what id like is when i call a trigger, have bravo team 4 or a way to specify my group instead of west, east, anyone, alpha, ect ,
does it have to be in the init file aswell , setGroupId or setsomethingId?

  and on radio too  ::) please ,,,,,
Title: Re:setGroupId
Post by: Dane on 30 Oct 2005, 11:07:39
bravoteam4=group this; setGroupId ["Bravo", "GroupColor4"] in loon's init.

If you want to use custom callsigns then download Student Pilot's tut on this page:
http://www.ofpec.com/editors/list.php?show=updated&t=&setnumperpage=50
Title: Re:setGroupId
Post by: Serial Killer on 30 Oct 2005, 11:53:17
bravoteam4=group this; setGroupId ["Bravo", "GroupColor4"] in loon's init.

I think it's ...; bravoteam4 setGroupId ["Bravo", "GroupColor4"]
Title: Re:setGroupId
Post by: yankme on 30 Oct 2005, 12:36:05
bravoteam4 = Group ap; this setGroupId ["Bravo", "GroupColor4"]  was what ive been trying the ap is player

bravoteam4 setGroupId ["Bravo", "GroupColor4"] this does something

sorry, bravoteam4=group this; setGroupId ["Bravo", "GroupColor4"] in loon's init.   is an error

   iam betting some little thingy is being over looked on my part here,,,,,,,,,iam off to see what  good ol' Student Pilot's got going on, thanks guys ;D
Title: Re:setGroupId
Post by: rado1265 on 30 Oct 2005, 13:41:11
Try:

bravoteam4 = group this; this setGroupID ["Bravo", "groupColor4"]
Title: Re:setGroupId
Post by: Dane on 30 Oct 2005, 14:36:16
Sorry
Quote
bravoteam4 setGroupId ["Bravo", "GroupColor4"]
is correct.
Title: Re:setGroupId
Post by: rado1265 on 30 Oct 2005, 16:35:02
However, the effect is the same, mate.
Title: Re:setGroupId
Post by: Dane on 30 Oct 2005, 20:59:18
Yes indeed ;)
That's just because i usually assign groups in initfields and groupID's in init.sqs to keep the initfields nice and tidy.
But that's just me.
Title: Re:setGroupId
Post by: yankme on 31 Oct 2005, 05:11:18
thanks guys,,,,, :),, your both right, and student pilot's tute is very easy to use, pics in a tute is allways helpful, ' i ALLWAYS assemble kids toys that way  :P'