Page MenuHomeFeedback Tracker

Arsenal "arsenalOpened" event called after arsenal opened
Reviewed, NormalPublic


When opening the virtual arsenal, the scripted event "arsenalOpened" will execute after the arsenal has already opened, instead of before. This creates issues when wanting to get variable names off assigned objects before they disappear.


No Bug
Operating System
Windows 10 x64
Operating System Version
Virtual Arsenal
Steps To Reproduce
  1. Equip loadout with backpack
  2. Execute the following code in the debug console as local
(backpackContainer player) setVariable ["ArsenalEventTest", "event fired correctly"];
    hint str ((backpackContainer player) getVariable ["ArsenalEventTest", "event fired late"];
}] call BIS_fnc_addScriptedEventHandler;
  1. Open BI arsenal
  2. Close BI arsenal and read hint

Event Timeline

BIS_fnc_KK added a subscriber: BIS_fnc_KK.EditedFri, May 22, 4:53 PM

This event handler is designed to fire after the event. Perhaps you could try to store backpack reference in a mission variable instead of on player as player may be replaced with dummy when arsenal is opened

BIS_fnc_KK changed the task status from New to Reviewed.Fri, May 22, 4:53 PM
BIS_fnc_KK changed Resolution from Open to No Bug.
dedmen added a subscriber: dedmen.Sat, May 23, 2:44 PM

Arsenal "arsenalOpened" event called after arsenal opened

Uhm yes. The name is "Opened" in past-tense not "Open"

I use CBA's display open EH to do what you want to do

Maybe we could add a "arsenalPreOpen" eventhandler as a suitable workaround?