EnaiSiaion Posted March 1, 2012 Share Posted March 1, 2012 (edited) Is there a way I can force an NPC to go to sleep RITE NOAW instead of waiting until the next night? I'm mainly trying to avoid having to break into his house or else sit in it invisible for hours. This would massively speed up vampire testing, and enable a cool new vampire spell as well. The papyrus command Actor.Sleep(bed) does exist, but it requires a bed. I want to do this on any NPC. Edited March 1, 2012 by EnaiSiaion Link to comment Share on other sites More sharing options...
Natz86 Posted March 1, 2012 Share Posted March 1, 2012 Is there a way I can force an NPC to go to sleep RITE NOAW instead of waiting until the next night? I'm mainly trying to avoid having to break into his house or else sit in it invisible for hours. This would massively speed up vampire testing, and enable a cool new vampire spell as well. The papyrus command Actor.Sleep(bed) does exist, but it requires a bed. I want to do this on any NPC. Easy! Take a heavy object, and swing it at their head. Instant KO! Totally joking of course. Link to comment Share on other sites More sharing options...
ctzto Posted March 1, 2012 Share Posted March 1, 2012 Could you possibly try using the "wait" in the game to speed things up? Link to comment Share on other sites More sharing options...
David Brasher Posted March 1, 2012 Share Posted March 1, 2012 Maybe you should build a mod for testing purposes that has an NPC in it that has an AI package to make him sleep all day and all night. Link to comment Share on other sites More sharing options...
MofoMojo Posted March 1, 2012 Share Posted March 1, 2012 (edited) Is there a way I can force an NPC to go to sleep RITE NOAW instead of waiting until the next night? I'm mainly trying to avoid having to break into his house or else sit in it invisible for hours. This would massively speed up vampire testing, and enable a cool new vampire spell as well. The papyrus command Actor.Sleep(bed) does exist, but it requires a bed. I want to do this on any NPC. EnaiSiaion, Working on a vampire mod here as well. Best thing I can suggest is creating a duplicate of a bed roll that has a transparent texture. Create a spell with a scripted magic effect that a) calls Target.PlaceAtMe(InvisibleBedRoll) then b) Target.Sleep(InvisibleBedRollReference) and move on from there. As long as the effect remains active, you can dynamically intercept the players OnSleepStop event in the magiceffect script and then call InvisibleBedRollReference.Delete() to remove the invisible bed roll from the cell. What happens and how to clean up if you move out of the cell is a little beyond me at this moment. Edit:...and .Sleep() exists? I don't see it on the wiki, but I'll take you're word for it. I found a few things documented on the script objects themselves that weren't covered in the main reference page. If it does, that certainly gives me an idea too. =MM Edited March 1, 2012 by MofoMojo Link to comment Share on other sites More sharing options...
JanusForbeare Posted March 1, 2012 Share Posted March 1, 2012 You could also just change the target's AI package into one that makes them sleep 24 hours a day, 7 days a week. It's easy enough to switch back, when you're done. Link to comment Share on other sites More sharing options...
Recommended Posts