ACE3/addons/viewdistance/functions/fnc_initViewDistance.sqf

24 lines
462 B
Plaintext
Raw Normal View History

2015-05-08 12:14:15 +00:00
/*
* Author: Winter
* Sets the player's current view distance according to allowed values.
*
*
* Arguments:
* 0: View Distance Setting (SCALAR)
*
* Return Value:
* None
*
* Example:
* [1500] call ace_common_fnc_imanexample
*
* Public: No
*/
#include "script_component.hpp"
["SettingChanged",{
if (_this select 0 == QGVAR(newViewDistance)) then {
[] call FUNC(changeViewDistance);
};
},true] call ace_common_fnc_addEventHandler;