OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: jt on 28 Aug 2006, 02:05:06

Title: Death Area
Post by: jt on 28 Aug 2006, 02:05:06
I want to ask how to let this happen:
  Anyone who is in/out of a given area,he will be "setdammage 1".Most like the area after the nuclear missile bombed.

Another question:
  How can I get all the mission I made through to make a campaign?Does anybody get some useful tools?
 
Thank you for any advance you make. 
Title: Re: Death Area
Post by: THobson on 28 Aug 2006, 09:28:13
A simple way would be to create a repeating trigger covering the area that will detect Anybody Present.  The Activation field should be:
{_x setDammage 1} forEach thislist

This will cause vehicles to be destroyed.  If you just want to kill the two legged units but leave the vehicles undamaged then try:

{{_x setDammage 1} forEach crew _x } forEach thislist
Title: Re: Death Area
Post by: jt on 28 Aug 2006, 13:28:45
It works. Thanks a lot!!!