IsPCSleeping () - conditions returns True even when waiting

Post » Thu Jun 21, 2012 12:33 pm

IsPCSleeping () condition returns true even when waiting.
Anyone found a work around for this?
User avatar
phillip crookes
 
Posts: 3420
Joined: Wed Jun 27, 2007 1:39 pm

Post » Thu Jun 21, 2012 8:24 am

Perhaps http://www.creationkit.com/RegisterForSleep_-_Form and http://www.creationkit.com/OnSleepStart_-_Form would fare better?
User avatar
Kelsey Anna Farley
 
Posts: 3433
Joined: Fri Jun 30, 2006 10:33 pm

Post » Thu Jun 21, 2012 9:03 am

I may have to revert back to that. I was using but decided to go with using Conditions this way http://www.gamesas.com/topic/1354316-conditions-in-papyrus because it cut down on potential problems with iterative events that pings scripts even with the ESP deactivated: http://www.gamesas.com/topic/1348833-old-versions-of-mods-conflicting-with-newer-ones. So I was trying to cut down on those types of Events. And I do have a Console uninstall procedure for the mod (setpqv kueasq uninstallNow True) already. I can unregister the Sleep Events there.

However, I can imagine that IsPCSleeping () will definitely cause bugs when used as a conditions.
User avatar
Veronica Flores
 
Posts: 3308
Joined: Mon Sep 11, 2006 5:26 pm

Post » Thu Jun 21, 2012 1:07 pm

Perhaps http://www.creationkit.com/GetSleepState_-_Actor if you're doing it with Papyrus. Also, if using an alias, RegisterForSleep() should automatically unregister.
User avatar
marie breen
 
Posts: 3388
Joined: Thu Aug 03, 2006 4:50 am

Post » Thu Jun 21, 2012 3:56 am

Depending of what you want to do, you could maybe, in a completely different way, use Stats :

int HoursSlept; do onceHoursSlept = QueryStat("Hours Slept"); thenif ( QueryStat("Hours Slept") > HoursSlept )	 Notification("Player has slept, not waited.")endif
User avatar
Andrea Pratt
 
Posts: 3396
Joined: Mon Jul 31, 2006 4:49 am


Return to V - Skyrim