Jump to content
Sign in to follow this  
VanhA-ICON

Trigger statement malfunction

Recommended Posts

Hi.

I would appreciate if someone wiser could help me with this.

The whole mission is dependant on a radio trigger created upon blufor activated trigger. I had to change it a bit trying to have it enabled properly in dedicated environment but the statement line is malfunctioning and the next script won't launch.

[] spawn {
     private ["_trg"];
     _trg = createTrigger ["EmptyDetector",getPos player];
     _trg setTriggerArea[5,5,0,true];
     _trg setTriggerActivation["CHARLIE","PRESENT",true];
     _trg setTriggerStatements ["this", [""'scripts\kaboom.sqf'"",""BIS_fnc_execVM"",false] spawn BIS_fnc_MP;, ""];
     3 setRadioMsg "Ask for a distraction" ;
};

Maybe someone could see what's the issue.

(The script error note is currently about a missing bracket "#'scrpits")

Share this post


Link to post
Share on other sites

Try :

    _trg setTriggerStatements ["this", "[""'scripts\kaboom.sqf'"",""BIS_fnc_execVM"",false] spawn BIS_fnc_MP;", ""];

Share this post


Link to post
Share on other sites

Yes, that seems to be working!

Thank you so much. I still need to verify it goes on the dedicated also but now it seems the mission will finally proceed.

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  

×