Comrades in Arms Discussion Board
setTriggerStatements on dynamically generated trigger - Printable Version

+- Comrades in Arms Discussion Board (http://forum.ciahome.net)
+-- Forum: Comrades in Arms Life (http://forum.ciahome.net/forumdisplay.php?fid=3)
+--- Forum: Mission Making (http://forum.ciahome.net/forumdisplay.php?fid=8)
+--- Thread: setTriggerStatements on dynamically generated trigger (/showthread.php?tid=3333)



setTriggerStatements on dynamically generated trigger - treendy - 04-03-2016

Im all out of ideas on this at the moment.



Code:
dtrg = createTrigger ["trgDestroyCache2", [0,0]];
dtrg setTriggerArea [0, 0, 0, false];    
dtrg setTriggerStatements ["!(alive dobjCache)", "hint 'hello';", ""];

When this runs, it creates a trigger, however when I run "triggerStatements dtrg" in debugger I am getting "[]" as the result... seems the triggerStatements are not being set.

I can confirm they are not being set also, by killing the dobjCache and no hint follows.

Im lost now, as to why the setTriggerStatements doesnt seem to be adding the statements?

Any help would be great, thank you




Re: setTriggerStatements on dynamically generated trigger - treendy - 04-03-2016

False alarm... sorry if anyone looked into this

Code:
dtrg = createTrigger ["trgDestroyCache2", [0,0]];


the first array string should have been "EmptyDetector".... F$&* knows why i decided to enter "trgDestroyCache2" in there!