OnOpen - ObjectReference

From Creation Kit
Jump to: navigation, search

Member of: ObjectReference Script

Event called when the object has finished opening. (Like a door that has finished animating open)

Syntax

Event OnOpen(ObjectReference akActionRef)

Parameters

  • akActionRef: The reference that caused us to open.

Examples

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

See Also