Home   Help Search Login Register  

Author Topic: Killzone for All East and West flagrunner  (Read 1192 times)

0 Members and 1 Guest are viewing this topic.

Offline Terox

  • Former Staff
  • ****
  • Follow the Sappers!
    • zeus-community.net
Killzone for All East and West flagrunner
« 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)
Zeus ARMA2 server IP = 77.74.193.124 :2302
Teamspeak IP = 77.74.193.123

Offline Terox

  • Former Staff
  • ****
  • Follow the Sappers!
    • zeus-community.net
Re:Killzone for All East and West flagrunner
« Reply #1 on: 19 May 2003, 00:23:58 »
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

 :)
« Last Edit: 19 May 2003, 00:25:59 by Terox »
Zeus ARMA2 server IP = 77.74.193.124 :2302
Teamspeak IP = 77.74.193.123