Skip to content

RefDropper

Merlord edited this page Jun 21, 2023 · 1 revision

Register a RefDropper modify a reference when it is dropped by the player.

RefDropper

function description
RefDropper.register(params) Register a new RefDropper.

RefDropper.register() Params

Key Type Description
droppedObjectId string The id of the object that was dropped.
replacerId string The id of the object to swap the dropped item with.
scale number The scale of the dropped item.
returnExcess boolean Default: true If true, will return excess items to the player.
onDrop function(refDropper, reference) A callback to run when the item is placed. Receives the dropped reference, or the new reference if replacerId is set.
Clone this wiki locally