mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Added moduleViewDistance file
This commit is contained in:
parent
bb625aac58
commit
5732015370
@ -2,6 +2,7 @@
|
||||
|
||||
ADDON = false;
|
||||
|
||||
PREP(moduleViewDistance);
|
||||
PREP(returnViewDistanceValue);
|
||||
PREP(changeViewDistance);
|
||||
PREP(initViewDistance);
|
||||
|
@ -12,7 +12,7 @@
|
||||
* Example:
|
||||
* [] call ace_viewdistance_fnc_changeViewDistance;
|
||||
*
|
||||
* Public: No
|
||||
* Public: Yes
|
||||
*/
|
||||
|
||||
#include "script_component.hpp"
|
||||
|
@ -1,18 +1,18 @@
|
||||
/*
|
||||
* Author: Winter
|
||||
* Sets the player's current view distance according to allowed values.
|
||||
* Assigns the Event Handler which fires when a player adjusts their view distance in the menu
|
||||
*
|
||||
*
|
||||
* Arguments:
|
||||
* 0: View Distance Setting (SCALAR)
|
||||
* None
|
||||
*
|
||||
* Return Value:
|
||||
* None
|
||||
*
|
||||
* Example:
|
||||
* [1500] call ace_common_fnc_imanexample
|
||||
* [] call ace_viewdistance_fnc_initViewDistance;
|
||||
*
|
||||
* Public: No
|
||||
* Public: Yes
|
||||
*/
|
||||
|
||||
#include "script_component.hpp"
|
||||
|
23
addons/viewdistance/functions/fnc_moduleViewDistance.sqf
Normal file
23
addons/viewdistance/functions/fnc_moduleViewDistance.sqf
Normal file
@ -0,0 +1,23 @@
|
||||
/*
|
||||
* Author: Winter
|
||||
* Initialises the view distance limiter module
|
||||
*
|
||||
*
|
||||
* Arguments:
|
||||
*
|
||||
*
|
||||
* Return Value:
|
||||
* View Distance Limit <SCALAR>
|
||||
*
|
||||
* Example:
|
||||
*
|
||||
*/
|
||||
|
||||
#include "script_component.hpp"
|
||||
|
||||
if (!isServer) exitWith {};
|
||||
/*
|
||||
PARAMS_2(_logic,_activated);
|
||||
|
||||
if !(_activated) exitWith {};
|
||||
*/
|
Loading…
Reference in New Issue
Block a user