OFPEC Forum

Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting Multiplayer => Topic started by: SgtWolf on 07 Sep 2007, 15:37:21

Title: Killing a player inside a trigger zone
Post by: SgtWolf 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.
Title: Re: Killing a player inside a trigger zone
Post by: myke13021 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
Title: Re: Killing a player inside a trigger zone
Post by: ironcross on 12 Dec 2007, 13:39:30
ah cool thanks i was looking for this to!  :good:
Title: Re: Killing a player inside a trigger zone
Post by: Spooner 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").