This is flag possition to be taken by either opfor or blufor. The capture var is a, if its over 50 blufor has control, if its below -50 opfor has control and between -15 and 15 it is neutral. The help i need is changing the incrementel defintion of a = a + 10 when the trigger is activated by blufor and a = a -10 when triggered by opfor. I tried triggerActivation "triggername" == west but no succes.
PHP Code://Trigger on activate
flag1 setTriggerArea [0, 0, 0, false ];
if (isnil "a") then {a = 0};
a = a + 10;
if (a >= 50)
then {a = 50; "flag11" setMarkeralpha 1; "flag12" setMarkeralpha 0; "flag13" setMarkeralpha 0;};
if (a <= -50)
then {a = -50; "flag11" setMarkeralpha 0; "flag12" setMarkeralpha 0; "flag13" setMarkeralpha 1;};
if (a >= -15)
then {if (a <= 15)
then {"flag11" setMarkeralpha 0; "flag12" setMarkeralpha 1; "flag13" setMarkeralpha 0;};};
//Trigger on deactivate
flag1 setTriggerArea [250, 250, 0, false ];
//comment
It has a timout of 1 secound making it loop every secound.
HOME
Reply With Quote