Page MenuHomeFeedback Tracker

ammobox commands not working in multiplayer
Closed, ResolvedPublic

Description

ammobox commands like "clearmagazinecago,clearweaponcargo,addmagazinecargo" not working in multiplayer.

Details

Legacy ID
1846315425
Severity
None
Resolution
No Bug
Reproducibility
Always
Category
Multiplayer
Steps To Reproduce

Simply put ammobox using mission editor, put commands like this : clearweaponcargo this;clearmagazinecargo this;this addweaponcargo ["binocular",5];
And play at own dedicated server, weapons & magazines still displayed gear menu of ammobox,and no binocular.

Additional Information

When I create server by "new" button, I can access ammobox correctly, but my friend can't access ammobox.
I comfirmed this bug both 1.34.128075 and 1.35.128059.

Event Timeline

gachopin edited Steps To Reproduce. (Show Details)Nov 6 2014, 3:30 AM
gachopin edited Additional Information. (Show Details)
gachopin set Category to Multiplayer.
gachopin set Reproducibility to Always.
gachopin set Severity to None.
gachopin set Resolution to No Bug.
gachopin set Legacy ID to 1846315425.May 7 2016, 7:46 PM

You have to use global commands.
For example : clearMagazineCargoGlobal this;

https://community.bistudio.com/wiki/clearMagazineCargoGlobal

Pretty much add "global" to the end of the local command.

Thank you TakeHomeTheCup.
This was not bug. I had to use global commands.

I added "global" commands, but now my friends can see it but they can't put it on it " picking it " in the ammobox, and if they manage to do it by taking it in the bag , putting it on the floor and then putting it on them again, i can't see it on their character , its like they are nude. And i can pick items from ammobox if i put it directly on my character but if i take it in my inventory then try to put it , it does'nt work

As far as this ticket is concerned, this was not a bug.

@LeaKS123 your issue seems to be different. Please create new ticket and attach detailed repro.

@KillZone Kid okay sorry, i created one already but noone answering it. Thats why i looked for other similar threads.