Home   Help Search Login Register  

Author Topic: Help  (Read 780 times)

0 Members and 1 Guest are viewing this topic.

Offline Killzone

  • Members
  • *
  • War is the true Enemy
Help
« 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

"Everyone dies so deal with it and move on"

                                                      ME

Offline Chris Death

  • Former Staff
  • ****
  • Finally Death's gonna get ya
    • OFPEC
Re: Help
« Reply #1 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
Dont argue with idiots....they will bring you down to their level and beat you there with experience.

How to use Waypoint type Scripted