Page MenuHomeFeedback Tracker

[Feature request] removeMagazineTurret optional parameter-removeLoaded
New, NormalPublic

Description

If possible, add optional parameter for syntax:

vehicle removeMagazineTurret [magazineName, turretPath, removeLoaded]

where removeLoaded is boolean-default TRUE so it doesn´t affect current user scripts.
Using FALSE should keep loaded magazine and remove magazine from cargo instead if available.

Details

Severity
Feature
Resolution
Open
Reproducibility
N/A
Operating System
Windows 10 x64
Category
Scripting
Steps To Reproduce

While in vehicle, use the following code in debug console:

_turretPath = vehicle player unitTurret player;
(vehicle player) removeMagazineTurret [((vehicle player) currentMagazineTurret _turretPath),_turretPath];

See that loaded magazine gets removed first. This is different from unit magazine removal where unloaded magazine gets removed first.

player removeMagazine (currentMagazine player);
Additional Information

The syntax might be used, when you need to remove vehicle specific magazine but you don´t want to unload their loaded magazine. If it isn´t possible to do it, then please close this ticket. Thanks.

Event Timeline

This comment was removed by LouMontana.