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 [000false ]; 
if (
isnil "a"then {0}; 

10

if (
>= 50
then {50"flag11" setMarkeralpha 1;  "flag12" setMarkeralpha 0;  "flag13" setMarkeralpha 0;}; 

if (
<= -50
then {= -50"flag11" setMarkeralpha 0;  "flag12" setMarkeralpha 0;  "flag13" setMarkeralpha 1;}; 

if (
>= -15
then {if (<= 15
then {"flag11" setMarkeralpha 0;  "flag12" setMarkeralpha 1;  "flag13" setMarkeralpha 0;};};

//Trigger on deactivate
flag1 setTriggerArea [2502500false ];


//comment
It has a timout of 1 secound making it loop every secound