ACE3/addons/winddeflection/XEH_postInit.sqf

23 lines
700 B
Plaintext
Raw Permalink Normal View History

2015-07-22 08:04:54 +00:00
#include "script_component.hpp"
if (!hasInterface) exitWith {};
2015-07-22 08:04:54 +00:00
GVAR(trackedBullets) = [];
["CBA_settingsInitialized", {
2015-07-22 08:04:54 +00:00
//If not enabled, dont't add PFEH
if (!GVAR(enabled)) exitWith {};
2016-02-06 21:36:20 +00:00
// Register fire event handler
["ace_firedPlayer", LINKFUNC(handleFired)] call CBA_fnc_addEventHandler;
["ace_firedPlayerNonLocal", LINKFUNC(handleFired)] call CBA_fnc_addEventHandler;
2016-02-06 21:36:20 +00:00
if (GVAR(vehicleEnabled)) then {
["ace_firedPlayerVehicle", LINKFUNC(handleFired)] call CBA_fnc_addEventHandler;
["ace_firedPlayerVehicleNonLocal", LINKFUNC(handleFired)] call CBA_fnc_addEventHandler;
2016-02-06 21:36:20 +00:00
};
2015-07-22 08:04:54 +00:00
[] call FUNC(updateTrajectoryPFH);
}] call CBA_fnc_addEventHandler;