Full Moon

If you liked this item, please rate it up on Steam Workshop page.

Author: M9-SD

Last revision: 1 Jul, 2023 at 00:22 UTC

File size: 1.02 KB

On Steam Workshop

Description:

This Zeus composition is a module that sets the date/time to the fullest moon in Arma 3.
To work, init scripts for compositions must be enabled on the server.

Maximum moon intensity will make the night as bright as possible.

Source code:

M9SD_fnc_zeusCompHelipadCleanup = { comment "Determine if execution context is composition and delete the helipad."; if ((!isNull (findDisplay 312)) && (!isNil ‘this’)) then { if (!isNull this) then { if (typeOf this == ‘Land_HelipadEmpty_F’) then { deleteVehicle this; }; }; }; }; M9SD_fnc_maxMoon = { comment "Set the date to the fullest Moon in Arma 3."; private [‘_date’, ‘_globalEffect’, ‘_showTransition’]; comment "https://community.bistudio.com/wiki/moonPhase"; _date = [4804,7,12,23,0]; comment "Offset -1hr from midnight."; _globalEffect = true; _showTransition = false; [_date, _globalEffect, _showTransition] call BIS_fnc_setDate; date; }; call M9SD_fnc_zeusCompHelipadCleanup; call M9SD_fnc_maxMoon;