-
Notifications
You must be signed in to change notification settings - Fork 2
RefDropper
Merlord edited this page Jun 21, 2023
·
1 revision
Register a RefDropper modify a reference when it is dropped by the player.
function | description |
---|---|
RefDropper.register(params) | Register a new RefDropper. |
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. |