Jump to content
Sign in to follow this  
Merad

Create Trigger troubleshooting.

Recommended Posts

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

Noone? Is it an obvious error? I'm just not seeing it.

Share this post


Link to post
Share on other sites

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×