Comrades in Arms Discussion Board

Full Version: setTriggerStatements on dynamically generated trigger
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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

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!