OnWorkshopObjectDestroyed - ObjectReference

From the Fallout4 CreationKit Wiki
Revision as of 17:18, 18 November 2015 by imported>Plplecuyer (→‎Parameters)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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]