[dismiss]
This wiki is a copy of the original Oblivion CS wiki created and maintained by the UESP.net. See CSwiki:Copy Notice for more info.
Difference between revisions of "Detect If Current Cell Is Wilderness Cell"
Jump to navigation
Jump to search
Detect If Current Cell Is Wilderness Cell (edit)
Revision as of 20:30, 29 November 2008
, 20:30, 29 November 2008no edit summary
imported>Haama (Going to do some tests) |
imported>KyleWollaston |
||
Line 2: | Line 2: | ||
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 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 " | #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 "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"). | #If the ''CellName'' is "MagesGuild" it will return true for the Mages Guilds (i.e., "CheydinhalMagesGuild", "AnvilMagesGuild"). |