OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: TH on 11 Jun 2004, 05:15:20

Title: Death Zones
Post by: TH on 11 Jun 2004, 05:15:20
I have a helicopter and a tank, i want the 1 that enters a certain area to die, but only the 1 that enters it, using the activation field not grouping them with the trigger :P
Title: Re:Death Zones
Post by: nEO iNC on 11 Jun 2004, 11:00:08
Hey TH,

Not sure if I understand you OK... So I'll give you an example of how I'd do it...

Place a repeating trigger and call it DEADZONE

Make the condition, EAST/WEST/RES PRESENT, depending on the side the heli and tank belong to.

In the ON ACT field put the following;

"_x setdamage 1" foreach unit (list DEADZONE)

Think this should work, but not certain the syntax is 100%... Hope this helps...  :)
Title: Re:Death Zones
Post by: Zombie on 11 Jun 2004, 12:01:24
"_x setdammage 1" foreach thislist
Title: Re:Death Zones
Post by: TH on 11 Jun 2004, 15:32:13
that would make everyone on the side die, i want to allow some west people, but not the chopper or tank  8)
Title: Re:Death Zones
Post by: Dubieman on 11 Jun 2004, 20:16:34
Okay here's what you do. You make two triggers in the same area wit the same dimensions. Make it repeating and group one to the tank and one to the heli. Then name the heli and tank
supafly and rock.  
Then in the trigger's activation field put

supafly setdammage 1

the one activated by the heli.

Then in the activation field of the tank trigger put

rock setdammage 1

and walla I think your problem is solved. :)
Title: Re:Death Zones
Post by: TH on 11 Jun 2004, 20:21:56
i alrdy thought of that, it would work if i didnt have my tank and heli alrdy grouped to a different trigger :P thx anyway. i need someway to do it thro the condition field, my helis name is c1 and i tried putting in c1 present but that doesnt work :-\
Title: Re:Death Zones
Post by: macguba on 11 Jun 2004, 20:31:44

Activation box:    East or whoever it is present
Condition:   c1d in thislist
On activation:   c1 setdammage 1

The game automatically names the drivers, gunners and commands of vehicles.    

c1D
c1G
c1C

Sometimes you need to refer to the crew rather than the vehicle itself to make things work as you want.

Title: Re:Death Zones
Post by: CrashnBurn on 11 Jun 2004, 20:33:19
Just in case you didn't know...You can group as many triggers to a unit as you want, or you can use this trigger condition-

Activation: Anyone  Present

condition:

(("_x in thislist" count [unit1, unit2]) > 0)

On Activation:

whatever you want.

Use your vehicle names where unit1 and unit2 are. This is tested and works.
Title: Re:Death Zones
Post by: TH on 11 Jun 2004, 20:44:57
thx guys got it to work ;D