Page MenuHomeFeedback Tracker

[Feature Request] Unloaded EventHandler
New, NormalPublic

Description

Instead of firing whenever a weapon's magazine is replaced like Reloaded does, this proposed Unloaded event handler would only occur when the magazine is removed without being replaced. This could be a result of a player removing the magazine manually from within the inventory, and potentially via scripting command such as removePrimaryWeaponItem.

this addEventHandler ["Unloaded", {
params ["_unit", "_weapon", "_muzzle", "_oldMagazine"];
}];

unit: Object - unit or vehicle to which EH is assigned
weapon: String - weapon that got unloaded
muzzle: String - weapon's muzzle that got unloaded
oldMagazine: Array - old magazine info

Details

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

Event Timeline

Vespade created this task.Aug 25 2023, 8:50 PM