Jump to content

Turning off lights when a certain time comes?


Recommended Posts

  • 2 months later...

From GhanBuriGhan's Script Tutorial

------------------------------------

Begin AfternoonTea
If ( GameHour >= 17 )
If ( GameHour <= 19 )
“Cup of Tea” -> Enable
endif
elseif ( GameHour < 17 )
if ( GameHour >19 )
“Cup of Tea” -> Disable
endif
endif
End AfternoonTea

-----------------------------------

Dawn is about 6 and dusk is about 20

 

Also from GhanBuriGhan:

Caution: disabling lights
There seems to be a game engine issue with disabled lights – Actors and some other types of
objects still seem to be illuminated, while the world around is not. I have not thoroughly
tested if this can be avoided, but a suitable workaround is to physically remove the light to a
remote location (e.g. a few meters below the floor) instead of disabling it. Another trick
comes from Indigo: If you enable a light that is set to "negative" (which means its generating
darkness instead of light) after you disable the normal light, the illumination problem goes
away.

 

Setting position (the other way to do movement)
SetPos, axis, float_enum_pos (float_var with Tribunal/Bloodmoon)

SetPos, z, 477
Object_ID -> SetPos X, 466

This function (unlike the move and moveworld functions) also works with Actors, including
the player. Axis is x, y, or z. The float value sets the position of the calling object to that
value. This always refers to the local coordinate system the object is currently in.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...