Detecting Transition to a Dungeon, Indoors location

Post » Tue Nov 05, 2013 11:53 am

Greetings,

I cannot find a trigger event that I can use to see if a player has just entered a dungeon.

OlLocationChange is not good because a Location is made up of cells and the dungeon may be part of the location the player is in. So it will not always triger.

I cannot get OnCellAttach to fire.

Trying not to use a heartbeat script.

Any help appreciated.

User avatar
Milagros Osorio
 
Posts: 3426
Joined: Fri Aug 25, 2006 4:33 pm

Post » Tue Nov 05, 2013 10:01 am

You could probably do something like this:

Actor property PlayerRef autoEvent OnCellAttached()  if playerRef.getParentCell().isInterior()    ;do stuff  endifEndEvent
User avatar
Sarah Unwin
 
Posts: 3413
Joined: Tue Aug 01, 2006 10:31 pm

Post » Tue Nov 05, 2013 1:00 pm

Where would I hang it, what would it extend? A script on a quest? Or a reference alias script?

User avatar
michael flanigan
 
Posts: 3449
Joined: Thu Jun 14, 2007 2:33 pm


Return to V - Skyrim