ACE3/addons/winddeflection/XEH_postInit.sqf

23 lines
688 B
Plaintext
Raw 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) = [];
2016-05-24 13:13:11 +00:00
["ace_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
2016-05-24 13:13:11 +00:00
["ace_firedPlayer", DFUNC(handleFired)] call CBA_fnc_addEventHandler;
["ace_firedPlayerNonLocal", DFUNC(handleFired)] call CBA_fnc_addEventHandler;
2016-02-06 21:36:20 +00:00
if (GVAR(vehicleEnabled)) then {
2016-05-24 13:13:11 +00:00
["ace_firedPlayerVehicle", DFUNC(handleFired)] call CBA_fnc_addEventHandler;
["ace_firedPlayerVehicleNonLocal", DFUNC(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;