Home   Help Search Login Register  

Author Topic: How to delete a bunch of unit inside a trigger zone?  (Read 760 times)

0 Members and 1 Guest are viewing this topic.

frag

  • Guest
Hi guys,

after some research, I still not found what I am searching for.

I have a bunch of mixed unit (side and type) in a trigger named myTrigger.

So when I call this line from another trigger:

myGroup = List myTrigger;"deletevehicle _x" foreach units myGroup

 I got an error message saying that a group is expected...not an array.

1. How can I change an Array to be a group?
2. Is it possible to have 2 units of different side in the same group?
3. If not, any idea how to do that?

Briefly, I want to delete EVERYTHING that is inside myTrigger.

Thanks in advance

Frag

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:How to delete a bunch of unit inside a trigger zone?
« Reply #1 on: 03 Dec 2002, 02:42:36 »
1) u cant but in dis case removeing da units command wil solve dat prob
2) yes just group them
3) da best way 2 do dat is 2 :

make a trig - covers da area u need

name : deletetrig
condition : anybody present (repeadtly)
conditionfield : delete

nd a script

Code: [Select]
delete = true
~2
"deletevehicle _x" foreach (list deletetrig)
exit


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