Jump to content
Sign in to follow this  
1para{god-father}

another JIP addaction issue !

Recommended Posts

here is an example from my code

I'm too tired to think of fixing code for now

[[myM2, ["<t color='#FF0000'>Delete Vehicle</t>", {deleteVehicle (_this select 0)}, [], 0, false, true, "", "driver _target == _this"]], "addAction", true, true] spawn BIS_fnc_MP;

edit fix (might not work)

[[cargoBox1,["Place Charge","charge.sqf",[], 0, false, false, "", "_this distance _target < 4"]],"addAction",true,true] call BIS_fnc_MP;    // adds the "place charge" action again  

Edited by Lala14

Share this post


Link to post
Share on other sites
here is an example from my code

I'm too tired to think of fixing code for now

[[myM2, ["<t color='#FF0000'>Delete Vehicle</t>", {deleteVehicle (_this select 0)}, [], 0, false, true, "", "driver _target == _this"]], "addAction", true, true] spawn BIS_fnc_MP;

edit fix (might not work)

[[cargoBox1,["Place Charge","charge.sqf",[], 0, false, false, "", "_this distance _target < 4"]],"addAction",true,true] call BIS_fnc_MP;    // adds the "place charge" action again  

That actually does work, at least it does in the editor. I put the code as:

[[cargoBox1,["<t color='#DBA901'>Place Charge</t>","charge.sqf",[], 0, false, false, "", "_this distance _target < 4"]],"addAction",true,true] call BIS_fnc_MP;

Thanks a lot for that, I'll replace all my other add/remove actions with this and try it on a dedicated server shortly to see if it gets rid of the duplicating issue, and let you know what happens.

---------- Post added at 15:27 ---------- Previous post was at 13:49 ----------

Works perfect on a dedicated server, no more duplicate actions tested with 2 users and lots of reconnecting. Thanks again.

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  

×