Page MenuHomeFeedback Tracker

setAmmo, ammo commands do not work on APC cannon turrets
Closed, ResolvedPublic

Description

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.

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

Crix edited Steps To Reproduce. (Show Details)Nov 3 2014, 2:49 PM
Crix edited Additional Information. (Show Details)
Crix set Category to Scripting.
Crix set Reproducibility to Always.
Crix set Severity to None.
Crix set Resolution to Fixed.
Crix set Legacy ID to 1141115000.May 7 2016, 7:44 PM

On DEV there is setMagazineTurretAmmo command so you will have to wait until next stable.

Crix added a subscriber: Crix.May 7 2016, 7:44 PM
Crix added a comment.Nov 3 2014, 4:04 PM

Awesome, that'll do.