2015-05-09 20:32:36 +00:00
|
|
|
#include "script_component.hpp"
|
|
|
|
|
2015-05-10 17:11:30 +00:00
|
|
|
// Initialize our event handlers
|
|
|
|
|
2015-05-10 16:51:16 +00:00
|
|
|
GVAR(ready) = false;
|
2015-05-09 20:32:36 +00:00
|
|
|
|
2015-05-10 17:11:30 +00:00
|
|
|
#ifdef ACE_EXTENSION_DYNLOAD
|
|
|
|
"ace_dynload" callExtension format["load:%1", GVAR(extensionLibrary)];
|
|
|
|
#endif
|
|
|
|
|
|
|
|
"init:" call FUNC(callExtension);
|
|
|
|
|
|
|
|
#ifdef ACE_VEHICLEDAMAGE_RENDER_DEBUG
|
|
|
|
"debug_render:" call FUNC(callExtension);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
[{
|
|
|
|
private["_result"];
|
|
|
|
// Wait until the extension is ready
|
|
|
|
_result = "ready" call FUNC(callExtension);
|
|
|
|
if(_result == "0") then {
|
|
|
|
diag_log text format["[ACE] - Vehicle damage extension initialized"];
|
|
|
|
GVAR(ready) = true;
|
|
|
|
};
|
|
|
|
}, 0, [] ] CBA_fnc_addPerFrameHandler;
|