commanderx 17 Posted January 21, 2015 (edited) Hi, I have a trigger spawned from a script. Before the trigger I define a variable [color="#FF8040"]var_task [color="#8B3E2F"][b]=[/b][/color] [color="#FF0000"]0[/color][color="#8B3E2F"][b];[/b][/color] [color="#191970"][b]publicVariable[/b][/color] [color="#7A7A7A"]"var_task"[/color][color="#8B3E2F"][b];[/b][/color][/color] after that I create the trigger [color="#FF8040"][color="#1874CD"]_trg[/color][color="#8B3E2F"][b]=[/b][/color][color="#191970"][b]createTrigger[/b][/color][color="#8B3E2F"][b][[/b][/color][color="#7A7A7A"]"EmptyDetector"[/color][color="#8B3E2F"][b],[/b][/color][color="#1874CD"]_random_pos[/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b];[/b][/color] [color="#1874CD"]_trg[/color] [color="#191970"][b]setTriggerArea[/b][/color][color="#8B3E2F"][b][[/b][/color][color="#FF0000"]40[/color][color="#8B3E2F"][b],[/b][/color][color="#FF0000"]40[/color][color="#8B3E2F"][b],[/b][/color][color="#FF0000"]0[/color][color="#8B3E2F"][b],[/b][/color][color="#000000"]false[/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b];[/b][/color] [color="#1874CD"]_trg[/color] [color="#191970"][b]setTriggerActivation[/b][/color][color="#8B3E2F"][b][[/b][/color][color="#7A7A7A"]"EAST"[/color][color="#8B3E2F"][b],[/b][/color][color="#7A7A7A"]"NOT PRESENT"[/color][color="#8B3E2F"][b],[/b][/color][color="#000000"]false[/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b];[/b][/color] [color="#1874CD"]_trg[/color] [color="#191970"][b]setTriggerStatements[/b][/color][color="#8B3E2F"][b][[/b][/color][color="#7A7A7A"]"this"[/color][color="#8B3E2F"][b],[/b][/color] [color="#7A7A7A"]"var_task = 1; publicVariable'var_task'"[/color][color="#8B3E2F"][b],[/b][/color] [color="#7A7A7A"]""[/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b];[/b][/color] [/color] and directly after that comes [color="#FF8040"][color="#191970"][b]waitUntil[/b][/color] [color="#8B3E2F"][b]{[/b][/color] [color="#191970"][b]sleep[/b][/color] [color="#FF0000"]4[/color][color="#8B3E2F"][b];[/b][/color] var_task [color="#8B3E2F"][b]=[/b][/color][color="#8B3E2F"][b]=[/b][/color] [color="#FF0000"]1[/color][color="#8B3E2F"][b];[/b][/color] [color="#8B3E2F"][b]}[/b][/color][color="#8B3E2F"][b];[/b][/color][/color] What should happen ist that the trigger should activate when no EAST unit is inside the defined trigger area. That works fine until I entered a helicopter. A few seconds after I startet the helicopter and took off, the var_task variable is magically set to 1 and everything after the waitUntil codeblock is executed. Don´t know why the trigger is triggered and set the variable. Any solutions? Edited January 21, 2015 by CommanderX Share this post Link to post Share on other sites