takeInworldPrim
From SmartBots Developers Docs
Revision as of 17:08, 11 October 2022 by Gg (Talk | contribs) (Created page with "{{DISPLAYTITLE:{{SUBPAGENAME}}}} <onlyinclude>Takes (de-rezzes) or copies in-world prim into bot's inventory. '''(not available for QubicBot yet)'''</onlyinclude> <syntaxhigh...")
Takes (de-rezzes) or copies in-world prim into bot's inventory. (not available for QubicBot yet)
Bot.takeInworldPrim(operation, objectUUID, folderUUID);
Reference
This command accepts the following parameters:
Variable | Required | Description
| |
---|---|---|---|
Input: | |||
operation | yes | one of the following values:
| |
objectUUID | yes | the UUID of the in-world object | |
folderUUID | yes | (optional) UUID of the folder to put object to. "Objects" folder will be used if not specified. | |
Output: | |||
Function returns a Promise with the following data: | |||
success | bool | true if command completed successfully | |
error | string | error string if command has failed |
Return value
Important: the command does not checks for the operation success.
Comments
Your bot has to have rights to grab the object specified (own it, or have permissions an owner's friend).
Examples
Touch a special test attachment object (contact SmartBots support to get it):
// Take (de-rez) in-world object to the default ("Objects") folder
Bot.takeInworldPrim("take", "bd36c29f-8a14-4350-b648-3e0f50b6d32a");