Detect If Current Cell Is Wilderness Cell
Revision as of 15:37, 8 October 2006 by imported>Scruggs
Get In Wilderness?
Dragoon Wraith TALK 18:49, 22 July 2006 (EDT): Is there any way to determine if an object is in a "Wilderness" cell, that is, not in a named cell, short of making sure he's in any of the named cells? I really don't feel like checking for every cell other than the one I want to make sure he's in one of the outside cells, and besides, that won't work with mods that change cells from Wilderness cells to actual places (like Frostcrag or something). I'd appreciate help here.
- I'm guessing
player.getincell wilderness
- doesn't work? Treleth 21:24, 22 July 2006 (EDT)
- Dragoon Wraith TALK 22:10, 22 July 2006 (EDT): No, it doesn't, because GetInCell only works for interiors.
- ShadowDancer 22:25, 22 July 2006 (EDT): K, so do you mean he is outside of one of the towns and not in a dungeon? If you are looking to make sure that he is not "in an interior" the scripting is as follows:
Begin GameMode If XXX.GetInWorldSpace Tamriel == 1 **Whatever coding** EndIf End
- Or you can do whatever if the condition is checked != 1 as the case may be depending on what you are trying to do. Hope that helps. It will also return false if the object you are checking is in one of the City Worlds or Oblivion Worlds. If you are just looking to find out if they are in a cell named Wilderness, then I don't have a clue other than checking every other named cell.
- Dragoon Wraith TALK 00:33, 23 July 2006 (EDT): Well, no, because there are places with their own names that don't have their own worldspaces, so that doesn't really do me much good... Ah, well, never mind, I won't bother trying to do it then. Wasn't that important.
- ShadowDancer 10:08, 23 July 2006 (EDT): Have you tried GetInCellParam? I haven't ever tried it so I don't know if it will work or not, but it doesn't say that it only works on interior cells. If it works on exterior cells, it should work fine as long as you are checking against an actor or the player.
- Dragoon Wraith TALK 12:00, 23 July 2006 (EDT): Haven't tried it, but "same functionality as GetInCell" reads to me to mean that it has the exact same workings, i.e. same limitations. Maybe I'll test it later - at the moment, I have no need for it, as I've figured out a better way to do it anyway.