Home   Help Search Login Register  

Author Topic: Safty zone-- Destruction of vehicals/planes  (Read 928 times)

0 Members and 1 Guest are viewing this topic.

Sublime

  • Guest
Safty zone-- Destruction of vehicals/planes
« on: 29 Sep 2002, 19:50:40 »
Alright...

How would i go about this...

Im making a multi-player map... but i want the two bases to be "safe zones"

I place a trigger, and do setdamaga 4  East Present etc.

Is there a way i can make it so ANY east vehical/plane will destruct when it reaches the trigger?  
OR do i have to name everyunit somthing, and then put unit1 setdamage 4, unit2 setdamage 4, unit3 setdamage 4 so on so on in the initiz field?

 ???
understand what im saying?

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Safty zone-- Destruction of vehicals/planes
« Reply #1 on: 29 Sep 2002, 20:05:42 »
I think what you are saying is that when any east soldier or vehicle enters the trigger area he gets zapped.

If that's what you want, the way to do it is something like this.  Create your trigger, activation east present, set to repeatedly.     In the on activation field put

"_x setdammage 1" forEach thislist

thislist returns an array of all units which satisfy the activation conditions of the trigger.   I think.   Anyway, try it and see how you get on.   Look at the un+official command reference guides in the editors depot for more info on the commands.

« Last Edit: 29 Sep 2002, 20:14:16 by macguba »
Plenty of reviewed ArmA missions for you to play

seanver

  • Guest
Re:Safty zone-- Destruction of vehicals/planes
« Reply #2 on: 29 Sep 2002, 20:08:44 »
The sintax is:

"_x setdammage 1" foreach thislist

(I don't think it is neccesary setdammage 4, setdammage 1 works fine)
« Last Edit: 29 Sep 2002, 20:09:55 by SeAnVeR »