mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
22 lines
772 B
Plaintext
22 lines
772 B
Plaintext
#include "script_component.hpp"
|
|
//#include "initKeybinds.sqf";
|
|
|
|
// Add interaction menu exception
|
|
["isNotSpectating", {!((_this select 0) getVariable [QGVAR(isSpectator), false])}] call EFUNC(common,addCanInteractWithCondition);
|
|
|
|
// Run spectator framework if enabled
|
|
["SettingsInitialized", {
|
|
if !(hasInterface) exitWith {};
|
|
|
|
/*if (GVAR(tracking)) then {
|
|
[FUNC(checkUnits), 2] call CBA_fnc_addPerFrameHandler;
|
|
[FUNC(trackUnits), 20] call CBA_fnc_addPerFrameHandler;
|
|
};*/
|
|
|
|
if GVAR(system) then {
|
|
// Add event handlers to correctly enter spectator upon death
|
|
player addEventHandler ["Killed", FUNC(handleKilled)];
|
|
player addEventHandler ["Respawn", FUNC(handleRespawn)];
|
|
};
|
|
}] call EFUNC(common,addEventHandler);
|