If you go into the editor, for example, and spawn a weapon (primary, secondary, or handgun) along with executing "<type>WeaponMagazine player;", you will receive an empty array. The problem seems to be that the command is locating the value from the inventory slot. The way to fix it is: 1. Spawn the weapon 2. Open then close Inventory 3. Execute magazine command. Only then will it return the correct value.
Description
Description
Details
Details
- Legacy ID
- 4034683503
- Severity
- None
- Resolution
- Unable To Duplicate
- Reproducibility
- Always
- Category
- Scripting
Steps To Reproduce
- Spawn a weapon.
- SystemChat exectue the respective magazine command for "player". (primaryWeaponMagazine, secondaryWeaponMagazine, or handgunMagazine)
- Receive an empty array.
The work around:
- Spawn a weapon.
- Open and close your inventory.
- SystemChat exectue the respective magazine command for "player". (primaryWeaponMagazine, secondaryWeaponMagazine, or handgunMagazine)
- Receive an array with one value.
Additional Information
Please fix these commands! My script will not work until these are fixed!
Event Timeline
Comment Actions
He probably means adding it to the player inventory, but details would be appreciated.
Comment Actions
I am not able to reproduce this with current repro. No reaction for 3 weeks, closing as unable to reproduce.
In case anyone will be able to reproduce this issue, please create a new bug with more precise repro steps. Thanks