Jump to content
Sign in to follow this  
Grinya

Items and Cloth cargo issue in MP (clearItemCargoGlobal)

Recommended Posts

Hello.

I can't solve problem with items and cloth in MP when try to remove them from ammobox. After adding stuff to crate and remove it from with timer weapons, magazines,grenades,attachments removes fine, but all cloth stuff and items(gmp, medikit and etc) isn't removed and spamming ammoboxes. I use clearItemCargoGlobal command to do that.

What wrong with it: script, arma or me?

Here script example:

Items spamming!

private["_crate"];
if (!isServer) exitWith {};
_crate = _this select 0;
while {alive _crate} do {
clearMagazineCargoGlobal _crate;
clearWeaponCargoGlobal _crate;
clearItemCargoGlobal _crate;
clearBackpackCargoGlobal _crate;
///Attachments///
_crate addItemCargoGlobal ["Zasleh2",5]; 
_crate addItemCargoGlobal ["muzzle_snds_H", 5]; 
_crate addItemCargoGlobal ["optic_Holosight", 5]; 
_crate addItemCargoGlobal ["acc_flashlight", 5]; 
_crate addItemCargoGlobal ["acc_pointer_IR", 5];
/////Items////
_crate addItemCargoGlobal ["FirstAidKit", 10];
_crate addItemCargoGlobal ["Toolkit", 3];
_crate addItemCargoGlobal ["ItemGPS", 10];
_crate addItemCargoGlobal ["Medikit", 3];
sleep (500+random 100);
};

private["_crate"];
if (!isServer) exitWith {};
_crate = _this select 0;
while {alive _crate} do {
clearMagazineCargoGlobal _crate;
clearWeaponCargoGlobal _crate;
clearItemCargoGlobal _crate;
clearBackpackCargoGlobal _crate;
////Uniforms(working)////
_crate addItemCargoGlobal ["U_BasicBody", 5];
_crate addItemCargoGlobal ["U_B_CombatUniform_mcam", 5];
_crate addItemCargoGlobal ["U_B_CombatUniform_mcam_tshirt", 5];
_crate addItemCargoGlobal ["U_B_CombatUniform_mcam_vest", 5];
_crate addItemCargoGlobal ["U_B_Wetsuit", 5];
////Vests(working)////
_crate addItemCargoGlobal ["V_Rangemaster_belt", 5];
_crate addItemCargoGlobal ["V_BandollierB_khk", 5];
_crate addItemCargoGlobal ["V_PlateCarrier1_rgr", 5];
_crate addItemCargoGlobal ["V_HarnessOGL_brn", 5];
_crate addItemCargoGlobal ["V_RebreatherB", 5];
////Helmets(working)////
_crate addItemCargoGlobal ["H_HelmetB", 5];
_crate addItemCargoGlobal ["H_Cap_blu", 5];
////Backpacks////
_crate addBackpackCargoGlobal ["B_AssaultPack_khk",5];
sleep (500+random 100);
};

Share this post


Link to post
Share on other sites

It's currently an issue with the command, it's currently broken and doesn't carry a global effect like it should instead it carries a local execution effect. Until it is fixed you will have to execute that command on every client telling them to remove the items from the box.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×