Detect If Current Cell Is Wilderness Cell
This article has been marked by editors or authors as incomplete. Please see the Talk page for details. Discussion and collaboration can improve an article and lead to a better Wiki.
Tools used in this tutorial
Required |
If you want to detect if an actor is in a set of cells you need to use GetInCell, GetInCellParam, or GetInWorldspace. Basically, each function takes two flags: ActorID and CellName. The function will return true (1) if the referenced ActorID is in a cell whose EditorID (name) includes the name in CellName. Some examples:
- If the CellName is "Anvil" it will return true for cells "AnvilBenirusMansion" and "AnvilCastleBarracks".
- If the CellName is "AnvilCastle" it will return false for "AnvilBenirusMansion" and true for "AnvilCastleBarracks"
- If the CellName is "MagesGuild" it will return true for the Mages Guilds (i.e., "CheydinhalMagesGuild", "AnvilMagesGuild").
- That doesn't include the Arcane University as "MagesGuild" is not part of the cell's name (i.e., "ICArcaneUniversityAlchemyHeadquarters", "ICArcaneUniversitySpellMaker"). Instead, use "ICArcaneUniversity" for the CellName.
Good cell names should be broad enough to cover every cell you want to check, but not so broad that every cell is included.
- For instance, when checking for Oblivion cells "Ob" would be too short and would return true for RobbersGlenCave. Instead, use "Oblivion".
The CellName flag is a bit unusual - it requires that you create a cell with the name you wish to search for. To do so
- Create a dummy interior cell.
- For the EditorID, use the desired CellName.
Notes[edit | edit source]
- You can check for Wilderness cells by using the CellName/EditorID "Wilderne"