ACE3/addons/viewdistance/XEH_clientInit.sqf

22 lines
672 B
Plaintext
Raw Normal View History

2015-05-08 12:14:15 +00:00
#include "script_component.hpp"
if (!hasInterface) exitWith {};
["CBA_settingsInitialized", {
// if not enabled, then bugger off.
2015-07-01 17:39:49 +00:00
if !(GVAR(enabled)) exitWith {};
// Limit on load
[false] call FUNC(adaptViewDistance);
// Set the EH which waits for a vehicle change to automatically swap between On Foot/In Land Vehicle/In Air Vehicle
// Also run when SettingsInitialized runs (not guaranteed)
["vehicle",{
[false] call FUNC(adaptViewDistance);
}] call CBA_fnc_addPlayerEventHandler;
["ACE_controlledUAV", {
[false] call FUNC(adaptViewDistance);
}] call CBA_fnc_addEventHandler;
}] call CBA_fnc_addEventHandler;