Page MenuHomeFeedback Tracker

addMagazineGlobal/addWeaponGlobal
Closed, ResolvedPublic

Description

(according to the wiki)
both of these commands duplicate items at some point.

addMagazineGlobal dupes the item, while addWeaponGlobal dupes the weapon if the targeted unit already has one.

Details

Severity
Minor
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
Scripting
Steps To Reproduce
  • Create a dedicated server mission with 2 units
  • Join the server with 2 players
  • Execute from the server allUnits#0 addWeaponGlobal primaryWeapon allUnits#0
  • Execute from the server allUnits#0 addMagazineGlobal "30Rnd_65x39_caseless_mag"
  • Notice the issues.

Event Timeline

BIS_fnc_KK added a subscriber: BIS_fnc_KK.EditedApr 17 2020, 12:04 PM

Reproduced

BIS_fnc_KK changed the task status from New to Need More Info.Apr 17 2020, 12:04 PM
BIS_fnc_KK changed the task status from Need More Info to Assigned.
BIS_fnc_KK edited Steps To Reproduce. (Show Details)
BIS_fnc_KK closed this task as Resolved.Mon, May 18, 11:11 PM

fix should be on dev