GetOpenState - ObjectReference

From Creation Kit
Revision as of 2011-10-21T17:53:12 by Jlundin (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Member of: ObjectReference Script

Obtains this object's current "open state".

Contents

Syntax

int Function GetOpenState() native

Parameters

None

Return Value

The current "open state" of the object. Will be one of the following:

  • 0: None (object can't be opened or closed)
  • 1: Open
  • 2: Opening
  • 3: Closed
  • 4: Closing

Examples

; Is this door open or opening?
int openState = JailDoor.GetOpenState()
if (openState == 1 || openState == 2) ; Open or opening
  Debug.Trace("Door is open!")
endIf

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox
coming
coming
coming
coming