ACE3/addons/viewdistance/functions/fnc_initViewDistance.sqf
2015-05-08 15:36:47 +02:00

24 lines
465 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"
["SettingChanged",{
if (_this select 0 == QGVAR(newViewDistance)) then {
[] call FUNC(changeViewDistance);
};
},true] call ace_common_fnc_addEventHandler;