OnWorkshopObjectDestroyed - ObjectReference

From Creation Kit
Jump to: navigation, search

Member of: ObjectReference Script

Event received when a workshop item is removed from world and added back into this workshop. The event is sent to both the Workshop reference and the reference being removed.

Syntax

Event OnWorkshopObjectDestroyed(ObjectReference akActionRef)

Parameters

  • akActionRef: If the script is on a Workshop reference, the ObjectReference that was just destroyed. If the script is on the destroyed reference, this is the Workshop reference.

Examples

Event OnWorkshopObjectDestroyed(ObjectReference akActionRef)
  Debug.Trace(akActionRef+ " a reference destroyed and added back into workshop.")
EndEvent

See Also