mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Adding required files
This commit is contained in:
24
addons/viewdistance/functions/fnc_changeViewDistance.sqf
Normal file
24
addons/viewdistance/functions/fnc_changeViewDistance.sqf
Normal file
@ -0,0 +1,24 @@
|
||||
/*
|
||||
* 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"
|
||||
|
||||
private ["_new_view_distance"];
|
||||
|
||||
_new_view_distance = _this select 0;
|
||||
|
||||
player setViewDistance (_new_view_distance);
|
@ -1,3 +0,0 @@
|
||||
#include "script_component.hpp"
|
||||
|
||||
diag_log text format["This is here as an example!!!"];
|
Reference in New Issue
Block a user