The command is not transmitted in multiplayer. He is not Gobal, but only local.
{F18619}
Description
Details
- Legacy ID
- 2625227755
- Severity
- Major
- Resolution
- Suspended
- Reproducibility
- Always
- Category
- Scripting
- constituted an ammo on a MP map
- write a little script that will fill the ammo.
if (isServer) then
{
private ["_kiste"];
_kiste=_this select 0;
sleep 1;
ClearWeaponCargo _kiste;
clearMagazineCargoGlobal _kiste;
clearItemCargoGlobal _kiste;
_kiste addWeaponCargoGlobal ["hgun_P07_F",10];
_kiste addMagazineCargoGlobal ["16Rnd_9x21_Mag",50];
};
3.The memory map to a dedi servers and test the ammo
4.Locally, the ammo has been filled correctly. In multiplayer, the ammo is not properly filled and contains other weapons.
Event Timeline
And since the Beta, this command doesn't delete all item in ammobox!
For example, in the supply box, when you do this command in the init, you will see that the firstaid is not removed!
It's the same with a little script to custom your box!
This problem is only on a dedicated server for me!!
On a pc, in editor or in MP, everything is good, but when you do it on a dedicated server = problems!
Use clearWeaponCargoGlobal for multiplayer synchronized cargo clearing. Note you still need to use clearMagazineCargoGlobal and clearItemCargoGlobal as well to fully clear it, and for the moment clearItemCargoGlobal is indeed bugged and does not synchronize.
KombatMilc, have you tried clearWeaponCargoGlobal? They probably won't fix clearWeaponCargo due to backward compatibility (it could break existing scripts that rely on the current behavior).
See galzohar's comment. Is there a reason why you are using all commands except this one in global variant? ClearWeaponCargo are not supposed to work this way in MP, we have here clearWeaponCargoGlobal for this.