2017-06-02 21:51:38 +00:00
|
|
|
#include "script_component.hpp"
|
|
|
|
|
|
|
|
if (!hasInterface) exitWith {};
|
|
|
|
|
|
|
|
["ace_settingsInitialized", {
|
2017-09-16 19:24:43 +00:00
|
|
|
["turret", LINKFUNC(setupVehicle), false] call CBA_fnc_addPlayerEventHandler;
|
|
|
|
["vehicle", LINKFUNC(setupVehicle), true] call CBA_fnc_addPlayerEventHandler; // only one of these needs the retro flag
|
2017-08-22 21:07:45 +00:00
|
|
|
|
|
|
|
// Add UAV Control Compatibility
|
|
|
|
["ACE_controlledUAV", {
|
|
|
|
params ["_UAV", "_seatAI", "_turret", "_position"];
|
|
|
|
TRACE_4("ACE_controlledUAV EH",_UAV,_seatAI,_turret,_position);
|
|
|
|
if (!isNull _seatAI) then {
|
2017-09-16 19:24:43 +00:00
|
|
|
[_seatAI] call FUNC(setupVehicle);
|
2017-08-22 21:07:45 +00:00
|
|
|
};
|
|
|
|
}] call CBA_fnc_addEventHandler;
|
2017-06-02 21:51:38 +00:00
|
|
|
}] call CBA_fnc_addEventHandler;
|