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"
|
2015-01-11 16:42:31 +00:00
|
|
|
|
|
|
|
disableSerialization;
|
2015-09-18 06:23:18 +00:00
|
|
|
|
2015-12-14 12:08:19 +00:00
|
|
|
private _dlg = ctrlParent _this;
|
2015-01-11 16:42:31 +00:00
|
|
|
|
|
|
|
_dlg displayAddEventHandler ["unload", {
|
2015-05-14 18:02:42 +00:00
|
|
|
if (_this select 1 == 1) then {
|
2015-11-30 16:27:09 +00:00
|
|
|
[missionnamespace getVariable ["BIS_fnc_initCuratorAttributes_target", objNull]] call FUNC(fixCrateContent);
|
2015-05-14 18:02:42 +00:00
|
|
|
};
|
2015-01-11 16:42:31 +00:00
|
|
|
}];
|