OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: Grenadier on 25 Sep 2002, 19:41:05

Title: Kill Zone in MP
Post by: Grenadier on 25 Sep 2002, 19:41:05
How would one go about making a kill zone for the opposite side to prevent them from entering respawn area?
Title: Re:Kill Zone in MP
Post by: icarus_uk on 25 Sep 2002, 20:19:35
Make your trigger and set it to activate repeatedly and to detect whatever side you want.

Leave the condition as;

This

And set the activation as;

"_X SetDammage 1" Foreach ThisList
Title: Re:Kill Zone in MP
Post by: Grenadier on 25 Sep 2002, 22:09:46
Thanks
Title: Re:Kill Zone in MP
Post by: demon of evil on 30 Dec 2002, 16:53:40
thanks too, I needed
Title: Re:Kill Zone in MP
Post by: Tactician on 30 Dec 2002, 22:43:00
I used to use this method, but I found it to be unreliable.  Sometimes it stops working when multiple units enter the kill zone, and a unit with a negative rating (anyone who kills enough friendly units) won't be detected at all.  So I made this exploit-proof method.

Trigger activated by Anybody present, repeatedly.  In the condition below, replace SIDE with the side that's supposed to be protected by the kill zone, not the side it's supposed to kill.  This will even kill negative rating units, and won't be broken by multiple intruders.

Condition:
(vehicle player) in thisList AND side player != SIDE

Activation:
(vehicle player) setDammage 1; player setDammage 1; hint "You violated enemy territory!"

The one thing this version of the killzone won't do (without a little more work) is broadcast a message to everyone that x player violated the kill zone.  If that's really important to you, it can still be done with some publicVariable work.
Title: Re:Kill Zone in MP
Post by: Diepvriezer on 09 Jan 2003, 20:45:17
I also needed this script for my other map CTF map, thx!
Title: Re:Kill Zone in MP
Post by: Diepvriezer on 09 Jan 2003, 20:48:19
O yes, how can I add it so that the other could see a hint like this when a player has been killed in the zone:   player has violated enemy territory!


Where   player   is the players name