Jump to content
Sign in to follow this  
ravsun

Issue with triggerStatement.

Recommended Posts

Hey again guys. Ive got another issue.

This trigger shows up as an radio alpha but the statement does not work.

Ive tested [[["","B_supplyCrate_F","FncSupplyCargo1"],"supply\supply.sqf"], "BIS_fnc_execVM", true] call BIS_fnc_MP; in the editor and it works fine.

_tr1 = createTrigger ["EmptyDetector", getPos Player];

_tr1 setTriggerArea [0, 0, 0, true];

_tr1 setTriggerText "TESTING";

_tr1 setTriggerTimeout [0, 0, 0, False];

_tr1 setTriggerType "NONE";

_tr1 setTriggerActivation ["ALPHA", "PRESENT",false];

_tr1 setTriggerStatements ["this", "[[["","B_supplyCrate_F","FncSupplyCargo1"],"supply\supply.sqf"], "BIS_fnc_execVM", true] call BIS_fnc_MP;";\

Any ideas?

Thanks

Share this post


Link to post
Share on other sites
_tr1 setTriggerStatements ["this", "[[['','B_supplyCrate_F','FncSupplyCargo1'],'supply\supply.sqf'], 'BIS_fnc_execVM', true] call BIS_fnc_MP;",""];

Share this post


Link to post
Share on other sites

Wow what a simple mistake thanks a ton...

Ive also been having an issue with addaction conditions.

sup1 = player addaction ["<t color="#01DF01"">" +"Supply Drop (Limit one)","support\ammo.sqf","",1,false,true,"","(triggerActivated trig1)];

So This works but I want to add another condition like so:

sup1 = player addaction ["<t color="#01DF01"">" +"Supply Drop (Limit one)","support\ammo.sqf","",1,false,true,"","(triggerActivated trig1) && !(triggerActivated trig2)]

The second one will check if a different trigger was activated then not show the action again.

It breaks the action for some reason.

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  

×