OnWorkshopObjectMoved - ObjectReference

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search

Member of: ObjectReference Script

Event received when an existing workshop item is moved in the world using this workshop. The event is sent to both the Workshop reference and the reference being moved.

Syntax[edit | edit source]

Event OnWorkshopObjectMoved(ObjectReference akReference)

Parameters[edit | edit source]

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

Examples[edit | edit source]

Event OnWorkshopObjectMoved(ObjectReference akReference)
  Debug.Trace(akReference + " just moved within the workshop!")
EndEvent

See Also[edit | edit source]