Dimensionlord1 Posted December 16, 2013 Share Posted December 16, 2013 Anyone know how to make a creature active only at night?I would be grateful to those who help. Link to comment Share on other sites More sharing options...
DrakeTheDragon Posted December 16, 2013 Share Posted December 16, 2013 (edited) There are different ways on how to make it active and inactive, like moving it into a holding cell and replacing it with an inanimate placeholder or simply turning off its AI, locking it in place like was done with the statue in Bruma (doesn't always work 100% reliably though, as I've seen said statue run around and killing guards myself on returning to the city after a long time off a couple times... fun times :laugh: ). However, the way to determine the time of day is pretty much straight forward though. It's used for guards to draw their torches at night, streetlights use it, too, for example.GetCurrentTime or the global variable "GameHour" should be all that's needed. edit: Coming to think of it, there might also be a way to script its AI packages so it's "sleeping" during the day but still possible to be woken up or something. But AI packages are beyond my scope of knowledge, sadly. Edited December 16, 2013 by DrakeTheDragon Link to comment Share on other sites More sharing options...
Harvald Posted December 20, 2013 Share Posted December 20, 2013 Hi ai-packages should work. Make a hidden point for the day-sleepingpackage and a night-aktive wanderpackage. but most of the animals have no special sleeping animation. Harvald Link to comment Share on other sites More sharing options...
Dimensionlord1 Posted December 22, 2013 Author Share Posted December 22, 2013 (edited) Thank you both. It would probably be interesting to do this with vampires. Edited December 22, 2013 by Dimensionlord1 Link to comment Share on other sites More sharing options...
The_Vyper Posted December 26, 2013 Share Posted December 26, 2013 There is a way to accomplish this via script; attach the following to your creature (or leveled list, if you're using one): Begin OnLoad ;this block will only run when the cell containing your creature loads If GameHour >= 20 || GameHour <= 6 ;if it is after 8PM or before 6AM If GetDisabled == 1 ;if the spawn point is currently disabled Enable Endif ElseIf GameHour > 6 && GameHour < 20 ;if it is after 6AM and before 8PM If GetDisabled == 0 ;if the spawn point is NOT currently disabled Disable Endif Endif End That will make sure your creature only shows up at night. Link to comment Share on other sites More sharing options...
Recommended Posts