mirror of
https://github.com/acemod/ACE3.git
synced 2025-07-25 21:02:48 +00:00
24 lines
462 B
Plaintext
24 lines
462 B
Plaintext
/*
|
|
* 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; |