mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
415d2f685c
FUNC -> LINKFUNC
23 lines
700 B
Plaintext
23 lines
700 B
Plaintext
#include "script_component.hpp"
|
|
|
|
if (!hasInterface) exitWith {};
|
|
|
|
GVAR(trackedBullets) = [];
|
|
|
|
["CBA_settingsInitialized", {
|
|
//If not enabled, dont't add PFEH
|
|
if (!GVAR(enabled)) exitWith {};
|
|
|
|
// Register fire event handler
|
|
["ace_firedPlayer", LINKFUNC(handleFired)] call CBA_fnc_addEventHandler;
|
|
["ace_firedPlayerNonLocal", LINKFUNC(handleFired)] call CBA_fnc_addEventHandler;
|
|
|
|
if (GVAR(vehicleEnabled)) then {
|
|
["ace_firedPlayerVehicle", LINKFUNC(handleFired)] call CBA_fnc_addEventHandler;
|
|
["ace_firedPlayerVehicleNonLocal", LINKFUNC(handleFired)] call CBA_fnc_addEventHandler;
|
|
};
|
|
|
|
[] call FUNC(updateTrajectoryPFH);
|
|
|
|
}] call CBA_fnc_addEventHandler;
|