new commands: sunrise, sunset
|Category:||Scripting: New command|
|Affected ArmA II version:||First affected ArmA II version:|
|Reproduced by another DH user:||No||Single / Multi Player?:|
|I am using some Mods:||No||BIForumURL:|
|I am using:||NGUrl:|
|Reproducible for you:||No||WIKIurl:|
|Related to content of DLC:|
How about two commands that return the time the sun rises/sets at the given date (on the current island/map), which would be most useful to customize/plan missions (choosing a start-time; suprise attack at dawn this time? Yeah!).
Besides the moonphase, this would be the last missing piece to offer a complete and reliable weather/forecast report. :)
Syntax: 1) sunrise <date>; 2) sunset <date>,
where <date> is an array as returned by the date-command or simply an array [year, month, day].
Returns: an array [hours, minutes, seconds] or even [hours, minutes, seconds]
or an empty array if the sun doesn't rise/set at the given date.
Updated by ruebe about 4 years ago
- File fn_sun.sqf added
Attached fn_sun.sqf, which is an attempt to calculate this.
Though it doesn't seem to be "spot on". :/
Feel free to use this in the meantime. Any suggestions are welcome of course, though I really think the "engine" should give us an answer to these question, rather than coming up with functions that almost match, what the "engine" already does...
Updated by zGuba about 4 years ago
- Status changed from New to Assigned
- Assignee set to Dwarden
- Affected ArmA II version deleted (
- Maxmem parameter deleted (
- Difficulty deleted (
- Language deleted (
Please set for missions)
- First affected ArmA II version deleted (
Good idea. Something I was searching for recently with my nvg script.