ACE3/addons/winddeflection/XEH_postInit.sqf

23 lines
698 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) = [];
["SettingsInitialized", {
//If not enabled, dont't add PFEH
if (!GVAR(enabled)) exitWith {};
2016-02-06 21:36:20 +00:00
// Register fire event handler
["firedPlayer", DFUNC(handleFired)] call EFUNC(common,addEventHandler);
["firedPlayerNonLocal", DFUNC(handleFired)] call EFUNC(common,addEventHandler);
if (GVAR(vehicleEnabled)) then {
["firedPlayerVehicle", DFUNC(handleFired)] call EFUNC(common,addEventHandler);
["firedPlayerVehicleNonLocal", DFUNC(handleFired)] call EFUNC(common,addEventHandler);
};
2015-07-22 08:04:54 +00:00
[] call FUNC(updateTrajectoryPFH);
}] call EFUNC(common,addEventHandler);