takeInworldPrim

From SmartBots Developers Docs
Bot PlaygroundCommands
Revision as of 17:09, 11 October 2022 by Gg (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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:
  • take - to take object from the world completely
  • copy - to take a copy of the object
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");