ACE3/addons/viewdistance/functions/fnc_initViewDistance.sqf
SAM 45992e5e7f All working except module returning any.
ace_viewdistance_moduleViewDistanceLimit always returning as any. No
error in the RPT relating to readSettingfromModule failing
2015-05-08 18:30:28 +02:00

26 lines
499 B
Plaintext

/*
* Author: Winter
* Assigns the Event Handler which fires when a player adjusts their view distance in the menu
*
*
* Arguments:
* None
*
* Return Value:
* None
*
* Example:
* [] call ace_viewdistance_fnc_initViewDistance;
*
* Public: Yes
*/
#include "script_component.hpp"
if (!hasInterface) exitWith {};
["SettingChanged",{
if (_this select 0 == QGVAR(newViewDistance)) then {
[] call FUNC(changeViewDistance);
};
},true] call ace_common_fnc_addEventHandler;