Hi Again
Im trying to create a trigger via a script and im having a few problems....
It is in SQF format
At the beginning of the script i have this...
obj1=false
In the script i then create an enemy squad followed by the trigger.
I create the trigger like this...
_obj1trg = createTrigger["EmptyDetector",[7974,7282,0]];
_obj1trg setTriggerActivation ["EAST", "not present", false];
_obj1trg setTriggerArea [200, 200, 0, true];
_obj1trg setTriggerStatements ["this","obj1=true",""];
_obj1trg setTriggerTimeout [5, 10, 7, true ];
Then at the end of my script i have this
obj1=true;
hint "Mission Complete";
deleteVehicle _obj1trg;
deleteVehicle _bot1;
deleteVehicle _bot2;
The problem im having is that the second i execute the script "obj1" becomes true instantly even though there is still east enemys in the created trigger.
I tested making a trigger to have east present with a hint saying "Enemy Present" this worked so im sure the trigger is being created.
I need the trigger to trigger obj1=true at the right time
Can someone help with this??
Many thanks
Wedge