Home   Help Search Login Register  

Author Topic: cant get assignTeam to work  (Read 890 times)

0 Members and 1 Guest are viewing this topic.

Offline SnarlingWolf

  • Members
  • *
cant get assignTeam to work
« on: 02 Apr 2008, 05:30:38 »
Hi

I have a question hopefully someone can help me with in ArmA mission editor

I have one group of 9 guys including leader in each of the units init box I have
Code: [Select]
Bravo=group this; Bravo1 assignTeam "Red" but each unit is in numerical order say Bravo1 through Bravo4 and 5-8 has
Code: [Select]
Bravo=group this;Bravo5 assignTeam "Blue" again in numerical order it works great in preview but when I launch in MP or LAN all units are team white :confused: am I doing something wrong?
« Last Edit: 02 Apr 2008, 17:36:11 by SnarlingWolf »

Offline Loyalguard

  • Former Staff
  • ****
Re: cant get assignTeam to work
« Reply #1 on: 04 Apr 2008, 16:48:39 »
Sorry for the delay in response.  I will try to diagnose it further tonight (unless someone beats me to the punch ;) ).  In the meantime instead of using the unit name try using "this" for the assignTeam portion of the init as well.  Example:

Code: [Select]
Bravo=group this; this assignTeam "RED";
if that doesn't work, you may want to try to use assignTeam (or even group as well) in an init.sqf instead of the unit's  init line in the editor.