mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
998f86f034
* first pass * second pass * third pass * final pass * missing commas * newlines * switch to cba eventhandler * newlines, formatting * laser - movedToSQF * add logging to ace_common_fnc_cbaSettings_loadFromConfig * Update initSettings.sqf Co-authored-by: PabstMirror <pabstmirror@gmail.com>
18 lines
664 B
Plaintext
18 lines
664 B
Plaintext
#include "script_component.hpp"
|
|
|
|
if (!hasInterface) exitWith {};
|
|
|
|
["CBA_settingsInitialized", {
|
|
["turret", LINKFUNC(setupVehicle), false] call CBA_fnc_addPlayerEventHandler;
|
|
["vehicle", LINKFUNC(setupVehicle), 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(setupVehicle);
|
|
};
|
|
}] call CBA_fnc_addEventHandler;
|
|
}] call CBA_fnc_addEventHandler;
|