Difference between revisions of "Bot Playground/Commands/takeInworldPrim"
From SmartBots Developers Docs
(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...") |
|||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
{{DISPLAYTITLE:{{SUBPAGENAME}}}} | {{DISPLAYTITLE:{{SUBPAGENAME}}}} | ||
− | <onlyinclude>Takes (de-rezzes) or copies in-world prim into bot's inventory. | + | <onlyinclude>Takes (de-rezzes) or copies in-world prim into bot's inventory. {{NotAvailableForQB}}</onlyinclude> |
<syntaxhighlight lang="javascript"> | <syntaxhighlight lang="javascript"> |
Latest revision as of 17:09, 11 October 2022
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");