Difference between revisions of "TotalControl for LSL/Commands/BOT WEAR"
From SmartBots Developers Docs
(Created page with "{{DISPLAYTITLE:BOT_WEAR}} <onlyinclude>Commands bot to wear specified item</onlyinclude> {{API Variables Table}} {{AdminBot Required Vars|BOT_WEAR}} {{API Variable|str|yes}}...") |
|||
| Line 1: | Line 1: | ||
{{DISPLAYTITLE:BOT_WEAR}} | {{DISPLAYTITLE:BOT_WEAR}} | ||
| − | <onlyinclude>Commands bot to wear specified item</onlyinclude> | + | <onlyinclude>Commands bot to wear or add a specified item</onlyinclude> |
{{API Variables Table}} | {{API Variables Table}} | ||
{{AdminBot Required Vars|BOT_WEAR}} | {{AdminBot Required Vars|BOT_WEAR}} | ||
| − | {{API Variable|str|yes}} | + | {{API Variable|str|yes}} can be left blank to wear an item or set to 'add' to add an item |
{{API Variable|id|yes}} uuid of the item to wear | {{API Variable|id|yes}} uuid of the item to wear | ||
| Line 11: | Line 11: | ||
== Example == | == Example == | ||
| + | Wear an item of clothing | ||
| + | <syntaxhighlight lang="lsl"> | ||
| + | llMessageLinked(LINK_SET, BOT_WEAR, "", "c8dea937-74a6-393b-1b7f-ea801fd1ccbc"); | ||
| + | </syntaxhighlight> | ||
| + | Add an item of clothing | ||
<syntaxhighlight lang="lsl"> | <syntaxhighlight lang="lsl"> | ||
| − | llMessageLinked(LINK_SET, BOT_WEAR, "", " | + | llMessageLinked(LINK_SET, BOT_WEAR, "add", "c8dea937-74a6-393b-1b7f-ea801fd1ccbc"); |
</syntaxhighlight> | </syntaxhighlight> | ||
Latest revision as of 17:24, 9 March 2019
Commands bot to wear or add a specified item
Variables
The following table shows input values (you send them with the API call) and returned output values.
| Variable | Required | Description
| |
|---|---|---|---|
| str | yes | can be left blank to wear an item or set to 'add' to add an item | |
| id | yes | uuid of the item to wear | |
Example
Wear an item of clothing
llMessageLinked(LINK_SET, BOT_WEAR, "", "c8dea937-74a6-393b-1b7f-ea801fd1ccbc");
Add an item of clothing
llMessageLinked(LINK_SET, BOT_WEAR, "add", "c8dea937-74a6-393b-1b7f-ea801fd1ccbc");