Merad 10 Posted July 7, 2009 I have a trigger, on activation the following code is activated. tskReachWayPoint2 settaskstate "SUCCEEDED";VEHRET=createTrigger [4870.25,7488.27,0.00134277];VEHRET setTriggerArea [100,100,0,False];VEHRET setTriggerActivation ["Anybody","Present", true];VEHRET setTriggerStatements [HMV1 in thislist,tskReturnHMV settaskstate "SUCCEEDED"] The intention is to both set a task as completed and create another trigger at a different part of the map with a new task. The problem is that the second created task is already marked as completed when this code executes. Share this post Link to post Share on other sites
Merad 10 Posted July 7, 2009 Noone? Is it an obvious error? I'm just not seeing it. Share this post Link to post Share on other sites
ProfTournesol 956 Posted July 7, 2009 Hi, i thought statements in setTriggerStatements were supposed to be strings. So it should be : VEHRET setTriggerStatements ["HMV1 in thislist","tskReturnHMV settaskstate ""SUCCEEDED"""] But, considering your problem (second objective marked as succeeded), not sure this will solve it. Share this post Link to post Share on other sites