OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: Terox on 17 May 2003, 16:50:52
-
I know how to create these two independant triggers
What i would like to do is tie them into the same trigger
Which would be sensible seeing as the west safezone trigger and the "anti flagrunner safezone would be in the same location and same size
How would i do this?
(I can see possible solution being to create an array of all east players and add to that array a variable for flagowner Eflag). Is there another way that i could do it, there doesnt seem to be a choice to add individuals to triggers , just all players on one side)
-
activationBy ANY
repeating
Cond: (vehicle player in thislist) AND ((side player==East) or (player==WFlagrunner))
Activ: (vehicle player) setdammage 1;if (Player in thisList) then {titleText[format["%1\nYou entered a safezone after being warned\nAnd now you have died",name (thisList select 0)],"Plain down"]}; if(vehicle player==WFlagrunner)then {hint format["Flagrunner\n%1\nentered a restricted area\n East's Flag has been returned",name (WFlagrunner)] AND EFlag setflagowner objNull}
Using variable Wflagrunner
WFlagrunner = Flagowner EFlag
The trigger immeditely returns the flag to its pole if the West player (WFlagrunner) enters his own respawn protection zone or any east player does.
Works on the Mission editor preview, havent had chance to try it on a ded server yet
Looking at it, it may be more efficient if i use the trigger with just the condition and exec a script to do this
:)