Home   Help Search Login Register  

Author Topic: Killing a player inside a trigger zone  (Read 1476 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)