Epoch/Sources/epoch_code/compile/EPOCH_niteLight.sqf

33 lines
788 B
Plaintext
Raw Normal View History

2015-12-07 16:24:52 +00:00
/*
Author: Aaron Clark - EpochMod.com
Contributors:
Description:
setup nightlight to provide improved night vision
Licence:
Arma Public License Share Alike (APL-SA) - https://www.bistudio.com/community/licenses/arma-public-license-share-alike
Github:
2016-06-13 16:54:19 +00:00
https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_code/compile/EPOCH_niteLight.sqf
2015-12-07 16:24:52 +00:00
*/
2015-09-14 20:55:36 +00:00
private ["_pos"];
if (!isNull EP_light) then {
deleteVehicle EP_light;
};
_pos = (getPosATL player);
_pos set [2,(_this select 1)];
EP_light = "#lightpoint" createvehiclelocal _pos;
EP_light setposATL _pos;
EP_light attachTo [player];
EP_light setLightDayLight true;
EP_light setLightBrightness (_this select 0);
EP_light setLightAmbient[0.05, 0.05, 0.05];
EP_light setlightcolor[0.05, 0.05, 0.05];
2015-12-07 16:24:52 +00:00
true