EDIT: Seems that the cause was referencing the weapon holder that is created when you open your inventory the client will crash.
Description
Details
- Legacy ID
- 2149976277
- Severity
- None
- Resolution
- Not A Bug
- Reproducibility
- Always
- Category
- Game Crash
player addEventHandler ["InventoryOpened", {_this call EPOCH_startInteract; true}];
EPOCH_startInteract = { player action ["Gear", (_this select 1)]};
OR
player addEventHandler ["InventoryOpened", {call EPOCH_startInteract}];
EPOCH_startInteract = {
_handled = false;
_targets = nearestObjects[getPosATL player, ["WeaponHolder","WeaponHolderSimulated"], 2];
if ((count _targets) > 0) then {
_target = _targets select 0; if (!isNull _target) then { player action ["Gear", _target]; _handled = true; };
};
_handled
};
Event Timeline
Ya I should have waited to post this, it seems that its the code that I am passing that is causing the crash.
This is not a bug, you are creating infinite loop by opening gear from eh code which triggers eh again. Action gear triggers inventoryopened. You have to remove eh, check example on wiki.
Hello,
thank you for reporting. As Killzone Kid states, this is not a bug. However, on Steam Dev version it should not be crashing the game anymore.
Thank you.
I understand that it creates a infinite loop now, I was under the impression that the opened handler was able to act before the actual opening hence the ability to suppress the inventory dialog entirely.
I guess it does what is says, opens the inventory first then closes it when passed true.
Mass closing tickets marked as resolved more than 1 month ago.
If the issue is in fact not resolved, please create a new ticket referencing this one and ask for it to be re-opened.