OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Killzone on 02 Jul 2006, 23:00:34

Title: Help
Post by: Killzone on 02 Jul 2006, 23:00:34
Hi all

I would like to  have an object (in this case a barrel) simulating a sarin gas attack where that if anyone came within a certain distance to this object then they would die.  What I am wondering is there a way to have the script where I dont have to name EVERY unit from all sides in order to do this. I was going to use


? Soldier1 distance object 67877 >100: goto "death" 

The problem I would have to name each unit then have a seperate line of code for each unit from all sides that may come in contact with this barrel.
Is there a way to have so that It can just detect anyone (in just a few lines of script) who comes close to it will die.

Thanks in advance for your help.  ;D

Title: Re: Help
Post by: Chris Death on 02 Jul 2006, 23:05:02
errm - i'm wondering how you could come so far finding out the 'scripting way' without taking
notice of a simple plain: TRIGGER

size: 100/100

activation: anybody/present/repeatedly(or multiple)

delay 0.5

condition: this

onActivation: "_x setdammage 1" foreach thislist

~S~ CD