OnWorkshopObjectPlaced - ObjectReference
Revision as of 01:59, 28 May 2016 by imported>Docclox (→Parameters: the parameter name was inconsistent with the name used in the event definition.)
Member of: ObjectReference Script
Event received when a workshop item is placed in the world using this workshop. The event is sent to both the Workshop reference and the reference being placed.
Syntax[edit | edit source]
Event OnWorkshopObjectPlaced(ObjectReference akReference)
Parameters[edit | edit source]
- akReference: If the script is on a Workshop reference, the ObjectReference that was just placed. If the script is on the placed reference, this is the Workshop reference.
Examples[edit | edit source]
Event OnWorkshopObjectPlaced(ObjectReference akReference)
Debug.Trace(akReference + " just added to world from workshop!")
EndEvent