Page MenuHomeFeedback Tracker

Bug with ClearWeaponCargo im MP
Closed, ResolvedPublic

Description

The command is not transmitted in multiplayer. He is not Gobal, but only local.
{F18619}

Details

Legacy ID
2625227755
Severity
Major
Resolution
Suspended
Reproducibility
Always
Category
Scripting
Steps To Reproduce
  1. constituted an ammo on a MP map
  2. 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

GNCLordMDB edited Additional Information. (Show Details)
GNCLordMDB set Category to Scripting.
GNCLordMDB set Reproducibility to Always.
GNCLordMDB set Severity to Major.
GNCLordMDB set Resolution to Suspended.
GNCLordMDB set Legacy ID to 2625227755.May 7 2016, 1:23 PM
chal00 added a subscriber: chal00.May 7 2016, 1:23 PM
chal00 added a comment.Jul 1 2013, 4:01 AM

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.

I am still having this issue aswell.

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.

No reaction for more than a month. Closing.