noricum 10 Posted May 14, 2014 Dear Community, i'm unable to solve this myself, even though i was searching the whole forum for a suitable fix. Basically i have one guy placed with an action, this addAction [("<t color='#E61616'>" + ("Interrogate") + "</t>"),"task.sqf","",1,true,true,"","(_target distance _this) < 3"] which hides preplaced ammoboxes in an certain area (task.sqf): if (isServer) then { {_pos = ["mr_zone"] call SHK_pos; (createMarker [str round random 999999, _pos]) setMarkerType "o_air"; _x setPos _pos; } foreach [cache1,cache2,cache3]; }; Seems to work fine in the editor, but it's not working on a dedicated server, nothing happens there. Can someone please help me out? Share this post Link to post Share on other sites
BadHabitz 235 Posted May 14, 2014 Wouldn't you need "_this addAction...." ? Share this post Link to post Share on other sites
noricum 10 Posted May 14, 2014 thanks for your reply, i have the action in the init of the unit, so _this would cause a local variable in global space. Share this post Link to post Share on other sites
Tajin 349 Posted May 14, 2014 Next time try to be a bit more precise when you describe what works and what doesn't. I bet your action does show up but has no effect. This is because when you use an action, the script of that action is only executed local to the player who used it. In your case, it should suffice to remove the "isServer" check. However, you'll also have to add a few lines to remove the action on all clients, so it cannot be used multiple times. Share this post Link to post Share on other sites
noricum 10 Posted May 14, 2014 thank you, going to test it out tonight! Share this post Link to post Share on other sites
f2k sel 164 Posted May 14, 2014 If you do use any AI on your map it's worth knowing that Invisible ammo boxes are only invisible to players AI can see them and use them. Share this post Link to post Share on other sites