billyeatworld 2 Posted January 10, 2017 Hey guys! So I have a really annoying problem that I've tried for hours to solve to no avail. Anyway, I'm trying to create an addaction with dynamic variable names on all players in multiplayer and then have it remove itself either when activated or later on in the script. The action will be to call an extraction heli, which is why I needed to add it to the players rather than the heli itself, because of the radius limitations. It seems to work perfectly on the host and on all clients as long as they join at the same time, but as soon as the first JIP player joins, the action can't be removed anymore. It's probably a simple fix but I just can't get my head around it. Here's just a simple example of how i'd like it to work. I was originally using the JIP remoteExec options rather than recreating the action on a loop but I thought it best to try and solve this problem first before getting into that. Any ideas? if (!isServer) exitWith {}; _var = "1"; call compile format [" while {true} do { [[], { testAction_%1 = player addaction [""<t color='#ff9900'>Test Action</t>"", { {player removeAction testAction_%1} remoteExec [""call"", 0]; hint ""this is a test action""; } , _this, 99, false, false, """", """"]; player setVariable [""action_Id_%1"", testAction_%1, true]; publicVariable ""testAction_%1""; }] remoteExec [""call"", 0]; sleep 10; {player removeAction testAction_%1} remoteExec [""call"", 0]; }; ", _var]; Share this post Link to post Share on other sites