IsInterior - Cell

From the Fallout4 CreationKit Wiki
Revision as of 15:27, 18 October 2011 by imported>Vitamant (1 revision: Clobber re-import by Henning)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Member of: Cell Script

Returns whether this cell is an interior cell or not.

Syntax[edit | edit source]

bool Function IsInterior() native

Parameters[edit | edit source]

None.

Return Value[edit | edit source]

Whether this cell is an interior one or not.

Examples[edit | edit source]

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

Notes[edit | edit source]

  • 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 Also[edit | edit source]