Page MenuHomeFeedback Tracker

addMagazine will add two magazines for smoke grenades
Closed, ResolvedPublic

Description

This is a weird one. When you remove all magazines from the player and add it again, it will work for real magazines. But it will not work for smoke grenades. I really don't know whats up there :)

It is the same behavior for "addMagazine <STRING>" and "addMagazine <ARRAY>".

Spawning + uiSleep 1 after removeMagazines does not solve it.

Details

Legacy ID
1000202163
Severity
None
Resolution
Fixed
Reproducibility
Always
Category
Scripting
Steps To Reproduce

player removeMagazines "30Rnd_556x45_Stanag";
player addMagazine ["30Rnd_556x45_Stanag", 1];
player removeMagazines "30Rnd_556x45_Stanag";
player addMagazine ["30Rnd_556x45_Stanag", 1];
// Player has one STANAG here

player removeMagazines "SmokeShellOrange";
player addMagazine ["SmokeShellOrange", 1];
player removeMagazines "SmokeShellOrange";
player addMagazine ["SmokeShellOrange", 1];
// Player has two smokes here

Event Timeline

Eichi edited Steps To Reproduce. (Show Details)Aug 6 2015, 2:13 PM
Eichi set Category to Scripting.
Eichi set Reproducibility to Always.
Eichi set Severity to None.
Eichi set Resolution to Fixed.
Eichi set Legacy ID to 1000202163.May 8 2016, 12:29 PM
Eichi edited a custom field.
Bohemia added a subscriber: Dwarden.Aug 6 2015, 2:13 PM

Should be fixed in Monday's dev

Adam added a comment.Aug 10 2015, 10:43 AM

fixed on devbranch :)