Page MenuHomeFeedback Tracker

addMagazineGlobal does not work if used on client directly after join
New, WishlistPublic

Description

addMagazineGlobal does not work if used on a client directly after joining when the mission is run from a dedicated server.

Details

Legacy ID
1738995137
Severity
None
Resolution
Open
Reproducibility
Always
Category
Dedicated Server
Steps To Reproduce

Create a mission. Put this in unit init.
player removeWeaponGlobal (primaryWeapon player);
player addBackpackGlobal "B_Carryall_ocamo";
player addMagazineGlobal "30Rnd_65x39_caseless_mag";
player addWeaponGlobal "arifle_MX_SW_F";
Run mission on a dedicated server and join.

Additional Information

If creating a script out of this and calling the same script from eventHandler respawn it works.
Creating this loop will also fix it.

while {currentMagazine player == ""} do
{
player removeWeaponGlobal (primaryWeapon player);
player addBackpackGlobal "B_Carryall_ocamo";
player addMagazineGlobal "30Rnd_65x39_caseless_mag";
player addWeaponGlobal "arifle_MX_SW_F";

sleep 1;

};

Event Timeline

m1nd0 edited Steps To Reproduce. (Show Details)Jan 23 2015, 10:27 AM
m1nd0 edited Additional Information. (Show Details)
m1nd0 set Category to Dedicated Server.
m1nd0 set Reproducibility to Always.
m1nd0 set Severity to None.
m1nd0 set Resolution to Open.
m1nd0 set Legacy ID to 1738995137.May 7 2016, 8:08 PM