Page MenuHomeFeedback Tracker

The ammo command report wrong value.
Closed, ResolvedPublic

Description

You have a full magazine, 30 rounds and you mount a vehicle, then you ask {player ammo primaryWeapon player} you will get 0. It's the same with secondaryWeapon and handgunWeapon.

Details

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

Open editor. Place a vehicle and a soldier. Press "PREVIEW" then open Debug console and type: systemChat str (player ammo primaryWeapon player); you will get the right amount of ammo in your current magazine. Now get in the vehicle and run the command again and you will get 0 returned.

Event Timeline

AsperitZ edited Steps To Reproduce. (Show Details)Jan 4 2016, 12:22 AM
AsperitZ set Category to Scripting.
AsperitZ set Reproducibility to Always.
AsperitZ set Severity to None.
AsperitZ set Resolution to Fixed.
AsperitZ set Legacy ID to 1201573075.May 8 2016, 1:25 PM

This has been already fixed in version v1.55.133505 and above of DEV branch and should appear in the next stable release.

Lovely! Thanks! =)