OnWorkshopObjectDestroyed - ObjectReference

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to 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[edit | edit source]

Event OnWorkshopObjectDestroyed(ObjectReference akActionRef)

Parameters[edit | edit source]

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

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

See Also[edit | edit source]