Talk:GetInCell

From the Oblivion ConstructionSet Wiki
Revision as of 09:24, 12 August 2007 by imported>Haama
Jump to navigation Jump to search

I looked around, but is there a good way to tell if the PC is in oblivion? In my mod I had to create a dummy cell called oblivion so I could do a "GetinCell Oblivion" First, I couldn't believe this hadn't already been done. Second, I'm not sure what doing this will break. Is there a better way?--Xilverbulet 18:31, 11 August 2007 (EDT)

GetInWorldspace, I believe. I think the Oblivion cells all share a world.
Dragoon Wraith TALK 01:39, 12 August 2007 (EDT)
I don't think GetInWorldspace works. First, it always returns 0 when the player is in an interior cell. Second, when you enter an Oblivion Gate, you get into one of the Oblivion worldspaces. I suggest using dummy cells for Oblivion planes. But you also need dummy cells for several other worldspaces. There is a list of worldspaces in the CS.

Tibixe 05:38, 12 August 2007 (EDT)

I don't think it'll break anything. After all, if any other mod uses a cell named "Oblivion", it will probably be just a dummy cell as well. If you want, I think (I've tried it, but I don't remember) you could also use OBSE's GetParentCell in conjunction with NameIncludes/CompareName to see if the cell name includes "Oblivion"
--Haama 10:24, 12 August 2007 (EDT)