Difference between revisions of "GetInCell"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>Rubberduck
m (Added link to GetInSameCell)
imported>Khadir
(Documenting actor functions ...)
Line 1: Line 1:
{{ActorFunction}}
'''Syntax:'''
'''Syntax:'''
   GetInCell ''CellName''
   [''ActorID''.]GetInCell ''CellName''
'''Example:'''
'''Example:'''
   GetInCell Chorrol  
   GetInCell Chorrol  


Returns true if the actor's current cell includes "CellName" as part of its name.  
Returns true if the actor's current cell includes "CellName" as part of its name.  


Note that CellName has to be a valid [[Interior_cells|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).  
Note that CellName has to be a valid [[Interior_cells|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==
==See Also==
[[GetInCellParam]]
* [[GetInCellParam]]
 
* [[GetInSameCell]]
[[GetInSameCell]]
* [[GetInWorldspace]]
 
[[GetInWorldspace]]


[[Category: Functions]]
[[Category: Functions]]
[[Category: Actor State Functions]]
[[Category: Actor State Functions]]
[[Category: Condition Functions]]
[[Category: Condition Functions]]

Revision as of 05:01, 28 June 2006

Template:ActorFunction Syntax:

 [ActorID.]GetInCell CellName

Example:

 GetInCell Chorrol 

Returns true if the actor's current cell includes "CellName" as part of its name.

Note that 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