Home   Help Search Login Register  

Author Topic: @for a group in a vehicle  (Read 486 times)

0 Members and 1 Guest are viewing this topic.

klavan

  • Guest
@for a group in a vehicle
« on: 26 Dec 2004, 10:30:05 »
I though that using the line<< @(_x in heli) foreach units group delta >> could solve the problem, but in fact I receive only error messages. I've tried various combination of this command, but nothing...
So I think i need some help... ;)
Thank in advance.

Offline Mud_Spike

  • Contributing Member
  • **
Re:@for a group in a vehicle
« Reply #1 on: 26 Dec 2004, 11:16:38 »
This is what you want, where 'delta' is the name of the group, and 'heli' is the chopper.

Code: [Select]
hint "waiting"
@({_x in heli} count units delta == count units delta)
? (not alive leader delta): hint "oops, they're all dead" ; exit
hint format ["all %1 in chopper %2", count units delta, heli]


klavan

  • Guest
Re:@for a group in a vehicle
« Reply #2 on: 26 Dec 2004, 16:13:17 »
Hey, it works!!!
What a surprise........eheheheh!!!!  :D :)
Thank you Mud_Spike.  ;)