IsInterior - Cell

Member of: Cell Script

Returns whether this cell is an interior cell or not.

SyntaxEdit

bool Function IsInterior() native

ParametersEdit

None.

Return ValueEdit

Whether this cell is an interior one or not.

ExamplesEdit

; Is the water park cell an interior cell?
if (WaterParkProperty.IsInterior())
  Debug.Trace("It's an indoor water park")
endIf

NotesEdit

  • Be careful when using myObject.GetParentCell().IsInterior() because if myObject enters an unloaded exterior cell, this will create errors because GetParentCell() returns NONE if in an unloaded exterior. Instead, consider using: myObject.IsInInterior()

See AlsoEdit