set ownership and unlock issue.

Post » Mon Mar 01, 2010 9:00 pm

I have a mod that teleports the player to an Inn room. I would like the player to find himself in the room with the bed available to be slept in and the door unlocked. However, when I use the reference of the door and Unlock (MerchantsInnRentDoor.Unlock) the door does not get unlocked. The same for the rent bed when I use MerchantsInnRentBed.SetOwnership, the bed is still unable to be slept in.

Anyone help with this?
User avatar
Bedford White
 
Posts: 3307
Joined: Tue Jun 12, 2007 2:09 am

Post » Mon Mar 01, 2010 11:58 pm

Just a thought as I haven't seen the script, but have you ensured that the SetOwnership & Unlock commands are before the MoveTo command?
User avatar
Darian Ennels
 
Posts: 3406
Joined: Mon Aug 20, 2007 2:00 pm

Post » Mon Mar 01, 2010 6:28 pm

Just a thought as I haven't seen the script, but have you ensured that the SetOwnership & Unlock commands are before the MoveTo command?

Ah thanks, I didn't realise you had to do that. Thanks.
User avatar
Sarah Kim
 
Posts: 3407
Joined: Tue Aug 29, 2006 2:24 pm

Post » Tue Mar 02, 2010 12:39 am

Aye, MoveTo on the player acts like a Return - no further lines of that script are processed until next frame. It's a classic 'Gotcha'!
User avatar
Laura Elizabeth
 
Posts: 3454
Joined: Wed Oct 11, 2006 7:34 pm


Return to IV - Oblivion