ACE3/addons/common/functions/fnc_addCuratorUnloadEventhandler.sqf

23 lines
436 B
Plaintext
Raw Normal View History

2015-09-18 06:23:18 +00:00
/*
* Author: commy2
*
* Arguments:
* Display where the Unload event was added <DISPLAY>
*
* Return Value:
* None
*
* Public: No
*/
2015-01-13 19:56:02 +00:00
#include "script_component.hpp"
disableSerialization;
2015-09-18 06:23:18 +00:00
private _dlg = ctrlParent _this;
_dlg displayAddEventHandler ["unload", {
2015-05-14 18:02:42 +00:00
if (_this select 1 == 1) then {
[missionnamespace getVariable ["BIS_fnc_initCuratorAttributes_target", objNull]] call FUNC(fixCrateContent);
2015-05-14 18:02:42 +00:00
};
}];