Warning: include(/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php): failed to open stream: No such file or directory in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Warning: include(): Failed opening '/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Notice: Undefined index: OFPEC in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152
    Home   Help Login Register  

Author Topic: Killing a player inside a trigger zone  (Read 2522 times)

0 Members and 1 Guest are viewing this topic.

Offline SgtWolf

  • Members
  • *
Killing a player inside a trigger zone
« on: 07 Sep 2007, 15:37:21 »
Hi again.

Lets say I want to kill any player in a mission that happens to enter within a trigger zone, how can I do this?

Thanks.

Offline myke13021

  • Contributing Member
  • **
  • Myke
Re: Killing a player inside a trigger zone
« Reply #1 on: 07 Sep 2007, 15:47:36 »
I bet the search function would have throw a few topics about it...anyway.


Create a trigger, size to fit your desired area, anybody/present/repeatedly

In the on activation line write:
Code: [Select]
{_x setdammage 1} foreach thislist
You can also use this to make safe zones in CTF style maps by setting Blufor/Opfor present, so enemy players can't enter respawn zone.


Myke out

*typo sorted* - Planck
« Last Edit: 12 Dec 2007, 15:36:12 by Planck »

Offline ironcross

  • Members
  • *
Re: Killing a player inside a trigger zone
« Reply #2 on: 12 Dec 2007, 13:39:30 »
ah cool thanks i was looking for this to!  :good:
ANY scripts or textures I use will be given DETAILED Acknowledgment's when help or scripts are used.

Offline Spooner

  • Members
  • *
  • Mostly useless
    • Community Base Addons
Re: Killing a player inside a trigger zone
« Reply #3 on: 12 Dec 2007, 14:07:26 »
Please don't reply to old threads (this one was inactive for 3 months) unless you have something meaningful to add (also, this answer mistyped "thisList" as "thislsit").
[Arma 2] CBA: Community Base Addons
[Arma 1] SPON Core (including links to my other scripts)