Dovhakiin Posted December 22, 2016 Share Posted December 22, 2016 I just want to be able to turn off the light when daytime comes ? whats the script code for it? Link to comment Share on other sites More sharing options...
Ferren42 Posted March 16, 2017 Share Posted March 16, 2017 From GhanBuriGhan's Script Tutorial------------------------------------Begin AfternoonTeaIf ( GameHour >= 17 ) If ( GameHour <= 19 ) “Cup of Tea” -> Enable endifelseif ( GameHour < 17 ) if ( GameHour >19 ) “Cup of Tea” -> Disable endifendifEnd AfternoonTea-----------------------------------Dawn is about 6 and dusk is about 20 Also from GhanBuriGhan:Caution: disabling lightsThere seems to be a game engine issue with disabled lights – Actors and some other types ofobjects still seem to be illuminated, while the world around is not. I have not thoroughlytested if this can be avoided, but a suitable workaround is to physically remove the light to aremote location (e.g. a few meters below the floor) instead of disabling it. Another trickcomes from Indigo: If you enable a light that is set to "negative" (which means its generatingdarkness instead of light) after you disable the normal light, the illumination problem goesaway. Setting position (the other way to do movement)SetPos, axis, float_enum_pos (float_var with Tribunal/Bloodmoon)SetPos, z, 477Object_ID -> SetPos X, 466This function (unlike the move and moveworld functions) also works with Actors, includingthe player. Axis is x, y, or z. The float value sets the position of the calling object to thatvalue. This always refers to the local coordinate system the object is currently in. Link to comment Share on other sites More sharing options...
Recommended Posts