Difference between revisions of "GetInCell"
Jump to navigation
Jump to search
Clarifying the required use of EditorIDs
imported>Side777 m |
imported>QQuix (Clarifying the required use of EditorIDs) |
||
Line 1: | Line 1: | ||
'''Syntax:''' | '''Syntax:''' | ||
[''ActorID''.]GetInCell '' | [''ActorID''.]GetInCell ''CellID'' | ||
'''Example:''' | '''Example:''' | ||
GetInCell Chorrol | GetInCell Chorrol | ||
Returns true if the actor's current cell includes " | Returns true if the actor's current cell includes "CellID" as the first part of its EditorID (not the cell name!). Again, this not exactly "any" part of its EditorID, it has to be the first part of its EditorID ... Chorrol will match Chorrol, Chorrol01, ChorrolFarm, etc. but using "Farm" would result in never finding ChorrolFarm. | ||
of its EditorID (not the cell name!). Again, this not exactly "any" part of | |||
be the first part of | |||
'''Notes:''' | '''Notes:''' | ||
*The | *The CellID has to be a valid [[Interior_cells|interior cell]] EditorID. This function will not compile if CellID is an [[Exterior cells|Exterior cell]] EditorID. In some cases, it is necessary to create a "dummy" interior cell (e.g. Chorrol) in order to use GetInCell for a set of related interior and exterior cells (e.g. all the ChorrolXXX cells). | ||
==See Also== | ==See Also== |