Home   Help Search Login Register  

Author Topic: forEach command with @unitReady  (Read 431 times)

0 Members and 1 Guest are viewing this topic.

borrowed soap

  • Guest
forEach command with @unitReady
« on: 20 Jun 2003, 18:24:10 »
is this right?:

init field of unit:
     sovietA = [sov1,sov2,sov3]  (this part i know works)

in the script:
     _sovietA = _this select 0  (this also has worked for me)
     
     _sovietA commandMove [x,y,x] (this works too)
     
     "@unitReady _x" forEach sovietA
          *this is what is not working*
i get the error message 'invalid number in operation'

not sure about the syntax, or if i can even use the @unitReady command like this, but it is not working.
when i try using the unit command with it:

     "@unitReady _x" forEach unit sovietA

i get the error message 'unknown operator sovietA'

there must b a way to command the sovietA group to wait at the xyz coordinates until the whole group has arrived in formation before moving on. im trying to avoid having to insert a separate line for each unit, as there are many groups in the mission and the task woud b what snYpir rightfully refers to as a Mutha

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:forEach command with @unitReady
« Reply #1 on: 20 Jun 2003, 18:30:55 »
it shud b

@ "unitReady _x" count sovietA == count sovietA

LCD OUT

shud work but dere may b syntax thingy ;D

LCD OUT
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

borrowed soap

  • Guest
Re:forEach command with @unitReady
« Reply #2 on: 20 Jun 2003, 18:44:47 »
once again u da man   8)