ACE3/addons/common/functions/fnc_addCuratorUnloadEventhandler.sqf

24 lines
444 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";
_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);
};
}];