Difference between revisions of "GetInCell"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>Vswe
m (Added Search Terms)
imported>Side777
m
Line 5: Line 5:


Returns true if the actor's current cell includes "CellName" as the first part
Returns true if the actor's current cell includes "CellName" as the first part
of its cell name. Again, this not exactly "any" part of it's name, it has to
of its EditorID (not the cell name!). Again, this not exactly "any" part of it's name, it has to
be the first part of it's name... Chorrol will match Chorrol, Chorrol01, ChorrolFarm, etc.  but using "Farm" would result in never finding ChorrolFarm.  
be the first part of it's name... Chorrol will match Chorrol, Chorrol01, ChorrolFarm, etc.  but using "Farm" would result in never finding ChorrolFarm.  



Revision as of 02:03, 17 September 2010

Syntax:

 [ActorID.]GetInCell CellName

Example:

 GetInCell Chorrol 

Returns true if the actor's current cell includes "CellName" as the first part of its EditorID (not the cell name!). Again, this not exactly "any" part of it's name, it has to be the first part of it's name... Chorrol will match Chorrol, Chorrol01, ChorrolFarm, etc. but using "Farm" would result in never finding ChorrolFarm.

Notes:

  • The CellName has to be a valid interior cell name. Exterior cells will not work. 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