addMagazineGlobal does not work if used on a client directly after joining when the mission is run from a dedicated server.
Description
Description
Details
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;
};