Using setAmmo on APCs with a cannon mounted (Marid, Marshall, Kamysh) does nothing. Also, the "ammo" command always returns 0, no matter how many rounds there are loaded in the cannon.
Description
Description
Details
Details
- Legacy ID
- 1141115000
- Severity
- None
- Resolution
- Fixed
- Reproducibility
- Always
- Category
- Scripting
Steps To Reproduce
Place a BTR-Kamysh in the Editor.
Get in as gunner.
Execute: vehicle player setAmmo [(vehicle player currentWeaponTurret [0]), 10];
Result: Ammo remains unchanged
Execute: hint format ["%1", vehicle player ammo (vehicle player currentMagazineTurret [0])];
Returns: 0 even tho 140 rounds are loaded
Additional Information
Porbably because AP and AT Shells are fired from the same type of weapon. Adding another TurretWeapon instead of using the same turretWeapon twice would porbably fix it.
Event Timeline
Comment Actions
On DEV there is setMagazineTurretAmmo command so you will have to wait until next stable.