Help with checking if someone is in a cell

Post » Sun Apr 21, 2013 1:48 pm

I have a scene with a teleport at the end that moves the player and my other actor to a ship. Sometimes, my other actor fails to teleport like he's supposed to. Don't ask me why, I haven't been able to figure that out as it's completely random and makes no sense. So, I want to put a failsafe in that when the cell loads I run a check and if my actor is not in the cell, to teleport him to his marker, if he is in the cell either do nothing or stop the script running I guess. I figured I could attach a script to an object in the cell and use the OnCellAttach event to run it. I found http://www.creationkit.com/GetInCell but it's very vague and I'm not even sure that is for Skyrim. I also found http://www.creationkit.com/GetParentCell_-_ObjectReferencebut it's under object refs and I didn't know if it would work for an actor.
User avatar
Sarah Edmunds
 
Posts: 3461
Joined: Sat Jul 08, 2006 8:03 pm

Return to V - Skyrim