ACE3/addons/vehicledamage/functions/fnc_monitorResultsPFH.sqf
jaynus fdf0ff2d24 Added: Result parsing, ext->sqf dispatch to localEvents
Fixed: Bullet build
Fixed: results are all 0=true, -1=failure, otherwise its a dispatch message.
2015-05-10 09:51:16 -07:00

19 lines
646 B
Plaintext

//#define DEBUG_MODE_FULL
#include "script_component.hpp"
PARAMS_2(_args,_handle);
private["_result"];
_result = "ace_vd" callExtension "fetch_result:1";
while { _result != "" && {_result != "-1"} } do {
TRACE_1("", _result);
_result = "ace_vd" callExtension "fetch_result:1";
_resultArgs = [_result] call FUNC(parseResult);
if(!isNil "_resultArgs") then {
if((_resultArgs select 0) == "exec") then {
[] call (_resultArgs select 1);
} else {
[format["ace_vehicledamage_%1", (_result select 0)], (_result select 1)] call EFUNC(common,localEvent);
};
};
};