mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-04-18 10:16:39 +03:00
Organize files a bit and removed non source pbo's
This commit is contained in:
28
SQF/dayz_code/actions/pzombie/pz_vision_ap.sqf
Normal file
28
SQF/dayz_code/actions/pzombie/pz_vision_ap.sqf
Normal file
@@ -0,0 +1,28 @@
|
||||
private ["_gen","_caller","_id","_NV","_NVOn","_new","_inc","_newap"];
|
||||
|
||||
_gen = _this select 0;
|
||||
_caller = _this select 1;
|
||||
_id = _this select 2;
|
||||
|
||||
// _gen removeAction _id;
|
||||
|
||||
// array from tweaking settings
|
||||
_new = _this select 3;
|
||||
_inc = _new select 0;
|
||||
|
||||
// get Aperture
|
||||
_NV = player getvariable ["NV",["OFF", 0.1]];
|
||||
|
||||
_newap = (_NV select 1)+_inc;
|
||||
|
||||
_NVOn = (_NV select 0);
|
||||
|
||||
if(_NVOn == "ON") then {
|
||||
|
||||
setAperture _newap;
|
||||
|
||||
player setVariable ["NV", ["OFF", _newap]];
|
||||
} else {
|
||||
player setVariable ["NV", ["ON", _newap]];
|
||||
};
|
||||
cutText [format["%1 %2","NV",_newap], "PLAIN DOWN"];
|
||||
Reference in New Issue
Block a user