OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: Ryote on 24 Nov 2004, 00:13:36

Title: flag activated kill zone
Post by: Ryote on 24 Nov 2004, 00:13:36
can anyone tell me is there a way to make an area a kill zone activated to a side by whoever holds a particular flag

ie if west hold flag5 then if east enter trigger area east die

i'd like to get this to work in 1.46

many thx for any help
Title: Re:flag activated kill zone
Post by: Platoon Patton on 26 Nov 2004, 23:59:48
U could use the Public Variable Flagstat.

Put Flag5stat = 0 in init.(Flag is neutral)
If West owns Flag5:Flag5stat = 1 ; if East owns:Flag5stat = 2

In your trigger:
Cond:side player ==east and Flag5stat ==1
Act:player setdammage 1

This is an unofficial idea,use at own risk  :P