Force Actor to Sleep via Script?

Post » Tue Dec 29, 2009 10:17 am

Hey guys - I'm using the UOP for the Vile Lair DLC, and I'm running into a small problem with my Cattle Cell.

Somehow, my prisoner stood up, and refuses to go to sleep. I've looked at the modified script that runs under the UOP, and yes, that possibility seems to have been removed. I've also never ran the mod without the UOP, and he used to sleep. Somehow, I'm not entirely sure how, he got up, and now I can't get him to go back to sleep. I've tried console commands, but now, I'm pretty much looking at making a quick and dirty mod that just adds a spell to force the Deepscorn Prisoner actor to sleep. However, while I can find script commands to determine IF an actor is sleeping, and to set one unconcious, I'm not entirely sure on how to FORCE an actor to sleep, at least well enough to get the GetSleeping check to return 3.

Any tips or ideas?
User avatar
Hazel Sian ogden
 
Posts: 3425
Joined: Tue Jul 04, 2006 7:10 am

Post » Tue Dec 29, 2009 9:58 am

He needs a "sleep" ai package, with a place to sleep and proper conditions set.

If he already has one, then you need to find the right conditions for him. If the conditions are all set correctly, then you can try selecting him in the console and typing "EVP" to make him "evaluate package" and decide what he should be doing right now.
User avatar
Raymond J. Ramirez
 
Posts: 3390
Joined: Sun Oct 14, 2007 8:28 am


Return to IV - Oblivion