tes3moon⚓︎
A structure that keeps track of information related two the game's two moons.
Moon move in an arc shape along the sky. The arc's start is at in-game North and ends in the South. The arc's plane can be rotated from North-South axis, by axisOffset
property. If moons overlap, Secunda is always rendered in front of Masser, so the Masser is covered by Secunda.
Each moon has 8 phases, which differ by the amount of the moon that is visible and the part covered in black. During waxing the moon appears in the sky during the first part of the night, before midnight. After the full phase, the moons usually rise during the later part of the night, after midnight. Much like the Earth's moon. Absolutely the first moment the moon can appear is controlled by fadeInStart
property, while the latest moment the moon sets is controlled by fadeOutFinish
property.
Most of the properties exposed here correspond to the setting of the same name in [Moons] section of the Morrowind.ini file.
Properties⚓︎
axisOffset
⚓︎
The rotation of the moon's path arc from the North-South axis, in degrees.
Returns:
result
(number)
dailyIncrement
⚓︎
Looks like this property controls when the moon raises during each phase of its cycle. Also seems to impact the progression of moon phases. The units of this property are most likely game hours.
Returns:
result
(number)
fadeEndAngle
⚓︎
This angle represents the angle from the water plane, in degrees. If a moon arrives at that point in the sky it will start disappearing. A moon can disappear even before its fadeOutStart
hour if it reaches this angle.
Returns:
result
(number)
fadeInFinish
⚓︎
The game hour at which the moon finishes fading in.
Returns:
result
(number)
fadeInStart
⚓︎
The game hour at which the moon starts to be visible in the sky.
Returns:
result
(number)
fadeOutFinish
⚓︎
The game hour at which has completely faded out.
Returns:
result
(number)
fadeOutStart
⚓︎
The game hour at which the moon starts fading out.
Returns:
result
(number)
fadeStartAngle
⚓︎
The angle, in degrees, from the water plane at which the moon first appears in the sky.
Returns:
result
(number)
index
⚓︎
Read-only. The index of the moon, 0 for Masser, 1 for Secunda.
Returns:
result
(number)
isRed
⚓︎
Determines if the moon is red, typically during the events of Bloodmoon.
Returns:
result
(boolean)
phase
⚓︎
The moon's current phase. The phase controls which of the moon's textures is currently being used.
Moon's phase | Used texture's suffix |
---|---|
0 | _new |
1 | _one_wax |
2 | _half_wax |
3 | _three_wax |
4 | _full |
5 | _three_wan |
6 | _half_wan |
7 | _one_wan |
Returns:
result
(number)
sceneMoonFace
⚓︎
Read-only. Provides access to the moon face NiNode, containing the lit face of the moon.
Returns:
result
(niNode)
sceneMoonRoot
⚓︎
Read-only. Provides access to the moon root NiNode.
Returns:
result
(niNode)
sceneMoonShadow
⚓︎
Read-only. Provides access to the moon shadow NiNode, containing the background-blocking shadow mask of the moon.
Returns:
result
(niNode)
shadowEarlyFadeAngle
⚓︎
No description yet available.
Returns:
result
(number)
speed
⚓︎
Controls the speed of the moons across the sky. This corresponds to the setting of the same name in [Moons] section of the Morrowind.ini file.
Returns:
result
(number)
texture
⚓︎
Read-only. The texture to use for the moon. These look like "Textures\tx_masser". The actual texture that is used is determined by the current moon phase.
Returns:
result
(string)
weatherController
⚓︎
Read-only. Quick access back to the weather controller structure.
Returns:
result
(tes3weatherController)