ACE3/addons/novehicleclanlogo/XEH_postInit.sqf
Filip Maciejewski a6ced105ee
Add No vehicle clan logo component (#9018)
* Add novehicleclanlogo component

* Documentation

* Update README.md

* Use selection name from vehicle config
2022-09-01 12:44:38 -05:00

15 lines
595 B
Plaintext

#include "script_component.hpp"
// clan logos are not used in singleplayer
if (!isMultiplayer) exitWith {};
["CBA_settingsInitialized", {
TRACE_1("settingsInit eh",GVAR(enabled));
if (isServer && {GVAR(enabled)}) then {
["LandVehicle", "initPost", LINKFUNC(removeClanLogo), true, [], true] call CBA_fnc_addClassEventHandler;
["Air", "initPost", LINKFUNC(removeClanLogo), true, [], true] call CBA_fnc_addClassEventHandler;
["Ship", "initPost", LINKFUNC(removeClanLogo), true, [], true] call CBA_fnc_addClassEventHandler;
};
}] call CBA_fnc_addEventHandler;