Background for Skyrim SE
Member of the ObjectReference script
eventOnClose(ObjectReferenceakActionRef)

Description

Wiki Description

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

Documentation Comment

Event received when this object is closed


Parameters

  1. ObjectReferenceakActionRef

    CK Wiki Description

    The reference that caused us to close.


Examples

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

Auto-Generated Example

Scriptname MyCoolScript extends ObjectReference

event OnClose(ObjectReference akActionRef)
    Debug.trace("Event received - OnClose: akActionRef = " + akActionRef)
endEvent

Related Pages


Additional References

View this event’s page on the Skyrim Creation Kit Wiki

Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.