Page MenuHomeFeedback Tracker

Eventhandler "Containeropened" not activating on dead "Man" class whereas "Containerclosed" is
New, WishlistPublic

Description

ContainerOpened eventhandler not firing when a player accesses the inventory of a dead unit with this eventhandler attached to it.

The "ContainerClosed" EH does work as expected
Both Eventhandlers work as expected when added to an ammo crate

Details

Legacy ID
3734826003
Severity
None
Resolution
Open
Reproducibility
Always
Category
Inventory
Steps To Reproduce

Create a unit
Add the following into the init field of the unit

this setdamage 1;
this addeventhandler ["ContainerOpened", {systemchat "Debug: EH Container Opened"}];
this addeventhandler ["ContainerClosed", {systemchat "Debug: EH Container Closed"}];

or name the unit U1 and add the following code to the init.sqf

u1 setdamage 1;
u1 addeventhandler ["ContainerOpened", {systemchat "Debug: EH Container Opened"}];
u1 addeventhandler ["ContainerClosed", {systemchat "Debug: EH Container Closed"}];

Approach the unit and open its inventory either using the "I" key or via the action menu

Event Timeline

Terox edited Steps To Reproduce. (Show Details)Mar 6 2015, 6:54 PM
Terox set Category to Inventory.
Terox set Reproducibility to Always.
Terox set Severity to None.
Terox set Resolution to Open.
Terox set Legacy ID to 3734826003.May 8 2016, 11:36 AM