Jump to content

making objects disapear/reappear at certain times?


dantheman1234

Recommended Posts

hey guys,

 

i searched but i couldnt find anything relevant, so if its been answered im sorry!

 

basically, im trying to get light beams to disapear at say 6pm and reappear at about 6am, for the life of my i cant figure it out!

 

cheers guys!

 

Make a script (object) and atach it to the lightsource.

you could try Disable/Enable

 

Example:

scn Lightscript

 

Begin Gamemode

 

if (GameHour >= 1800 && GameHour <= 0600) ;<---------set the hour between 6pm and 6am

LightsourceREF.Disable;<-----------------------------disables light

else

LightsourceREF.Enable;<--------------------------will turn it back on if not between 6pm and 6am

endif

END

 

you can find the timescale reference at : http://geck.bethsoft.com/index.php/List_of_Global_Variables

Edited by Capt Mitch
Link to comment
Share on other sites

  • 7 months later...
  • Recently Browsing   0 members

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