How to get the starting cell of a npc?

Post » Sat Oct 01, 2011 7:09 am

Hi,

I am in need of assistence. I am trying to find out the cell in which a npc is sleeping. I want to do this with the sleep package (GetPackageLocationData). There are different options possible and one gives me a headache (searching for hours the cswiki now): 'Editor'. This is the position where the npc has been placed in the editor after creation. I found out that I can use GetStartingPos and GetStartingAngle to determine the position. But I cannot get a complete set of data to find out the cell or to position s.th. at this position. How do I find out the cell-reference (need it to use GetParentCellOwner)? Please help!
User avatar
Adriana Lenzo
 
Posts: 3446
Joined: Tue Apr 03, 2007 1:32 am

Return to IV - Oblivion