Home   Help Search Login Register  

Author Topic: Ughhh I have given up! :(  (Read 5998 times)

0 Members and 1 Guest are viewing this topic.

CptBravo

  • Guest
Re:Ughhh I have given up! :(
« Reply #30 on: 11 Dec 2004, 21:37:01 »

2)thats what i was thinking of, but then everybody would be the same group


But if we have 3 different trigs over 3 different spawn objects in different locations  .. can we name soldiers spawning in each trig point a different group name?

Thanks

Offline Triggerhappy

  • Contributing Member
  • **
  • Llama, it's what's for dinner.
Re:Ughhh I have given up! :(
« Reply #31 on: 12 Dec 2004, 04:30:59 »
whoa! my bad, the group name is a global variable, so you would only have the name of the group of the last person to spawn there.
maybe something like:
activation:counter = counter + 1;call format ["group%1",counter] = group this

then everytime a unit spawns they will have their own group name, i think.
group1
group2
etc

you would need to give counter a value of zero in init so that will work
« Last Edit: 12 Dec 2004, 04:31:44 by Triggerhappy »