Jump to content

How to make objects only appear during the day?


BourgeoisBanana

Recommended Posts

I've tried absolutely everything, but I'm only able to make objects appear at night or 24/7. I figured it would be a case of reversing the following script, but that doesn't work either:

 

scn	DayTimeOnlyLightsScript

begin GameMode

	if (GameHour > 6) && (GameHour < 19)
		if GetDisabled == 0
			Disable
		endif
	elseif GetDisabled
		Enable
	endif

end

This hasn't worked, no matter how much I switch the numbers around. I've also experimented with Emmitance but I can't find one that does what I need. The item in question is a window that I need illuminated during the day (because of sunlight) and dark at night (because of... no sunlight).

 

Thanks in advance for your help!

Link to comment
Share on other sites

Check the conditions for a perk such as Solar Powered. That one works from 6 AM to 6 PM so it should give you a good idea.

 

EDIT: For the script itself you could copy my go-to script for disabling lights during the day and enabling them at night. Then you can mess with the time using the conditions from Solar Powered.

Begin Gamemode

;Light management here
  if GameHour >= 20 || GameHour < 6	
     LightREF.enable
   else	
     LightREF.disable
EndIf
END
Edited by Jokerine
Link to comment
Share on other sites

  • Recently Browsing   0 members

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