Jump to content

Get Current Cell ID


RadogoR

Recommended Posts

Posted

Hi guys,

 

Sorry for posting the second question in a new thread, but I think, it could be useful for everybody since I couldn`t find an answer anywhere o_O

 

Could someone PLEASE tell me, what function do we use to get current cell ID (I mean, the interior cell the player is currently in)???

 

I'm actually surprized a lot, cause I didn`t find any appropriate function at cs.elderscrolls Wiki.

 

Any ideas? Someone?

 

What do I need it for:

 

Let's imagine, the player got taken as a slave by an NPC. After that the player has to follow NPC everywhere including the NPS's house.

If we do nothing about trespassing level, the NPC will shout at the player and finally send trespassing alarm. I need to change the cell ownership temporarily to avoid that.

 

There are functions for that as SetCellIsPublic or SetCellOwnership, but all of them require Cell ID.

Posted

player.GetParentCell... That was actually the thing!

 

Damn, I should have guessed.

Thank you, guys, that's just the thing I needed.

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...