Jump to content

Timing Light emitters to time of day


Recommended Posts

i'm trying to have a light turn on and off depending on the time of day to look like the sun shining through the ceiling of a cave. I already set the sky to be the exteriors sky but if i add sky lighting the entire cave inherits the light instead of just what is below the hole.

Link to comment
Share on other sites

From what I've gathered the SetAnimationVariableFloat seems to set the lights on/off and their respective attributes of a Light property, set using PlaceAtMe.

 

I've found "flightintensity" (which probably is brightness), "fLightColor", "fDampRate" (maybe for fading?), "fToggleBlend" (either 1.0 or 0.0).

As in the context: SetAnimationVariableFloat("flightintensity", 0.0)

 

As for getting it to light up during the day you can use GetCurrentGameTime and have it change brightness and color to mach day and night.

 

 

As you already know I don't have the CK to play with so this is hopefully the nudge you need to get it to work yourself. Good luck!

Edited by timtimman
Link to comment
Share on other sites

  • Recently Browsing   0 members

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