Background for Fallout 4
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)

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 Fallout 4 Creation Kit Wiki

Some data provided by the Fallout 4 Creation Kit Wiki. Licensed under the Creative Commons Attribution-Share Alike 4.0 license.