mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
74fd0f507f
* Add EH for UAV control, Add Hellfire support * cycle guidance keybind * Handle broken PlayerViewChanged * humps * UAV Self-interactions (#5379) * Switch ACE_Player to uav AI on valid seat change * Different approach to UAV interactions * Forgot to remove a variable * Changed param to select
20 lines
667 B
Plaintext
20 lines
667 B
Plaintext
#include "script_component.hpp"
|
|
|
|
if (!hasInterface) exitWith {};
|
|
|
|
GVAR(pfID) = -1;
|
|
|
|
["ace_settingsInitialized", {
|
|
["turret", LINKFUNC(showHud), false] call CBA_fnc_addPlayerEventHandler;
|
|
["vehicle", LINKFUNC(showHud), true] call CBA_fnc_addPlayerEventHandler; // only one of these needs the retro flag
|
|
|
|
// Add UAV Control Compatibility
|
|
["ACE_controlledUAV", {
|
|
params ["_UAV", "_seatAI", "_turret", "_position"];
|
|
TRACE_4("ACE_controlledUAV EH",_UAV,_seatAI,_turret,_position);
|
|
if (!isNull _seatAI) then {
|
|
[_seatAI] call FUNC(showHud);
|
|
};
|
|
}] call CBA_fnc_addEventHandler;
|
|
}] call CBA_fnc_addEventHandler;
|