wraithjuggler 0 Posted December 25, 2018 Hello. Here is my code: zachBag = zach addAction ["Remove Gun From Bag", { removebackpack zach; zach addWeapon "CUP_srifle_VSSVintorez"; }]; The problem is, everyone on the server when I play multiplayer sees this action when they hover over my character. How do I make it so this AddAction is only shown for myself, rather than having everyone able to do it to me? Share this post Link to post Share on other sites
beno_83au 1369 Posted December 25, 2018 Everyone sees it, because everyone is creating their own action. The way you are executing the addAction would be the problem here. A combination of http://killzonekid.com/arma-scripting-tutorials-locality/, https://community.bistudio.com/wiki/addAction and https://community.bistudio.com/wiki/Event_Scripts (initPlayerLocal.sqf) should get you going. 2 Share this post Link to post Share on other sites
wraithjuggler 0 Posted December 27, 2018 On 12/25/2018 at 11:53 AM, beno_83au said: Everyone sees it, because everyone is creating their own action. The way you are executing the addAction would be the problem here. A combination of http://killzonekid.com/arma-scripting-tutorials-locality/, https://community.bistudio.com/wiki/addAction and https://community.bistudio.com/wiki/Event_Scripts (initPlayerLocal.sqf) should get you going. But I did AddAction just for that unit. I did it under the unit's init as well. Why shouldn't that work? Share this post Link to post Share on other sites
johnnyboy 3770 Posted December 27, 2018 The above locality related suggestions are good. But you might also solve it by adding a condition parameter within the addAction statement. Maybe a condition of {player == zach} would restrict this action to only the dude named zach (if that is what you are trying to do). See the extended syntax for addAction where you can specify a condition. 2 Share this post Link to post Share on other sites
beno_83au 1369 Posted December 28, 2018 2 hours ago, wraithjuggler said: But I did AddAction just for that unit. I did it under the unit's init as well. Why shouldn't that work? I'm fairly sure that anything executed through a unit's init in the editor gets executed for all clients. So every player would run that command. If you're having trouble understanding locality then johnnyboy's suggestion is a good one to help you get by, but if you're doing a bunch of MP editing you'll have to get your head around locality at some point. 2 Share this post Link to post Share on other sites