ACE3/addons/viewdistance/functions/fnc_initViewDistance.sqf

24 lines
465 B
Plaintext
Raw Normal View History

2015-05-08 12:14:15 +00:00
/*
* Author: Winter
2015-05-08 13:36:47 +00:00
* Assigns the Event Handler which fires when a player adjusts their view distance in the menu
2015-05-08 12:14:15 +00:00
*
*
* Arguments:
2015-05-08 13:36:47 +00:00
* None
2015-05-08 12:14:15 +00:00
*
* Return Value:
* None
*
* Example:
2015-05-08 13:36:47 +00:00
* [] call ace_viewdistance_fnc_initViewDistance;
2015-05-08 12:14:15 +00:00
*
2015-05-08 13:36:47 +00:00
* Public: Yes
2015-05-08 12:14:15 +00:00
*/
#include "script_component.hpp"
["SettingChanged",{
if (_this select 0 == QGVAR(newViewDistance)) then {
[] call FUNC(changeViewDistance);
};
},true] call ace_common_fnc_addEventHandler;