OnOpen - ObjectReference

From the CreationKit Wiki
Revision as of 16:19, 16 August 2010 by imported>Jlundin (Created page with 'Category:Scripting Category:Papyrus Category:Events '''Member of:''' ObjectReference Script Event called when the object has finished opening. (Like a door that …')
(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 opening. (Like a door that has finished animating open)

Syntax[edit | edit source]

Event OnOpen(ObjectReference akActionRef)

Parameters[edit | edit source]

  • akActionRef: The reference that caused us to open.

Examples[edit | edit source]

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[edit | edit source]