IsFurnitureInUse - ObjectReference

From the CreationKit Wiki
Revision as of 16:24, 28 June 2011 by imported>Jlundin (→‎Return Value)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Member of: ObjectReference Script

Checks to see if any furniture marker on this object is in use, optionally ignoring markers that are reserved, but not currently used.

Syntax

bool Function IsFurnitureInUse(bool abIgnoreReserved = false) native

Parameters

  • abIgnoreReserved: Whether to ignore reserved markers or not.
    • Default: False

Return Value

If any marker on the furniture is in use. (Or reserved, if we aren't ignoring reservations)

Examples

; Is the bed in use (or someone has reserved it)?
if Bed.IsFurnitureInUse()
  Debug.Trace("Bed is being used")
endIf


; Is the bed actually in use (ignoring reservations)?
if Bed.IsFurnitureInUse(true)
  Debug.Trace("Bed is actually being used")
endIf

See Also