OnClose - ObjectReference

From the CreationKit Wiki
Revision as of 22:24, 28 January 2013 by imported>RJC (clarifies that this does not work on boos.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Member of: ObjectReference Script

Event called when the object has finished closing. (Like a door that has finished animating shut, but not a book that has finished closing.)

Syntax[edit | edit source]

Event OnClose(ObjectReference akActionRef)

Parameters[edit | edit source]

  • akActionRef: The reference that caused us to close.

Examples[edit | edit source]

Event OnClose(ObjectReference akActionRef)
  if (akActionRef == Game.GetPlayer())
    Debug.Trace("We were closed by the player")
  else
    Debug.Trace("Someone (or something) else closed us")
  endIf
endEvent

See Also[edit | edit source]