ACE3/addons/core/functions/fnc_addUnloadEventhandler.sqf
2015-01-12 05:14:15 -06:00

14 lines
327 B
Plaintext

// by commy2
#include "\z\ace\addons\core\script_component.hpp"
private "_dlg";
disableSerialization;
_dlg = ctrlParent _this;
_dlg displayAddEventHandler ["unload", {
if (_this select 1 == 1) then {
[missionnamespace getvariable ["BIS_fnc_initCuratorAttributes_target", objNull]] call FUNC(fixCrateContent);
};
}];