点击图片可看到更多讯息
开始使用于
- 游戏:
- Arma 3 Development Branch
- 版本:
- 1.57
描述
- 描述:
- Returns the phase of the in-game Moon on the given date in range 0...1, where 0 - new Moon, 1 - full Moon. According to this command the fullest Moon in Arma 3 at midnight is on setDate [4804,7,13,0,0];
基本句法
范例
- 范例1:
_currentMoonPhase = moonPhase date;
- 范例2:
// Returns array of dates for given year when moon is at its fullest fnc_fullMoonDates = { private _year = param [0, 2035]; private ["_date", "_phase", "_fullMoonDate"]; private _fullMoonPhase = 1; private _day = 1 / 365; private _waxing = false; private _fullMoonDates = []; for "_i" from -_day to dateToNumber [_year, 12, 31, 23, 59] step _day do { _date = numberToDate [_year, _i]; _phase = moonPhase _date; call { if (_phase > _fullMoonPhase) exitWith { _waxing = true; _fullMoonDate = _date; }; if (_waxing) exitWith { _waxing = false; _fullMoonDates pushBack _fullMoonDate; }; }; _fullMoonPhase = _phase; }; _fullMoonDates }; //set random full moon date in year 1970 setDate selectRandom (1970 call fnc_fullMoonDates);
额外资讯
- 多人游戏:
- -
- 也可以看看:
- moonIntensitysunOrMoon