Page MenuHomeFeedback Tracker

[Feature Request] currentMagazine Alternative Syntax
New, NormalPublic

Description

The original syntax obviously allows for easy access to what magazine is associated with the weapon or muzzle the player is currently wielding, but with this alternate syntax, one would be able to find out what magazine is currently loaded in a muzzle or weapon that isn't selected by the player. While this would function incredibly similar to primaryWeaponMagazine, secondaryWeaponMagazine, handgunMagazine, etc. the user would be able to specify the muzzle instead of having to cross the result of the above to the order of the muzzles array in the config.

Syntax:

currentMagazine vehicle;

Alternative syntax:

currentMagazine [vehicle, muzzle];

Example:

//--- Exact same result as original syntax
_currentMagazine = currentMagazine [player, currentMuzzle player];

//--- Returns current magazine in "EGLM" muzzle
_currentMagazineUGL = currentMagazine [player, "EGLM"];

//--- Returns current magazine in handgun
_currentMagazineHandgun = currentMagazine [player, handgunWeapon player];

Details

Severity
Feature
Resolution
Open
Reproducibility
N/A
Operating System
Windows 10 x64
Category
General

Event Timeline

Vespade created this task.Aug 27 2023, 5:47 AM
h- added a subscriber: h-.Aug 28 2023, 9:40 AM