Page MenuHomeFeedback Tracker

[Request] magazine ID parameter for magazine-related commands, and specific-magazine commands
New, NormalPublic

Description

Currently it is possible to get the unique ID of a magazine from a couple of places, such as a Reloaded event handler or the magazinesDetail command.
However, there is no way to actually use this ID to refer to a specific magazine in other commands.

This request is to add the ability to use a magazine unique ID in any command that manipulates a specific magazine, such as removeMagazine. The utility is not massive, but it would allow a few interesting tricks, like perhaps regenerating ammo or...some other things I haven't thought of, I dunno.

example:

_unit removeMagazine [id:9001]
_vehicle loadMagazine [[0],"mortar_82mm",[id:9001]]

(note: in the case of removeMagazine it might be convenient to make a separate command, e.g. "removeMagazineID", since a magazine targeted by its unique ID could be removed from anywhere without needing to specify the container.)

Alongside this, it would be convenient to have more commands that are related to specific magazines, such as:

  • a version of loadMagazine that works on infantry units, not just vehicles
  • a command, e.g. "setMagazineAmmo", to manipulate the bullet count of a particular magazine ([id:9001] setMagazineAmmo 30)
  • a command, e.g. "transferMagazine", to move specific magazines between inventory containers ([id:9001] transferMagazine _targetCrate)

Details

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

Event Timeline

NikkoJT created this task.Feb 5 2021, 3:21 PM