Difference between revisions of "TotalControl for LSL/Commands/BOT SETUP SETOPTIONS"
From SmartBots Developers Docs
m |
(Correction to typo and updated example) |
||
Line 1: | Line 1: | ||
− | {{DISPLAYTITLE: | + | {{DISPLAYTITLE:BOT_SETUP_SETOPTIONS}} |
<onlyinclude>Sets various options for TotalControl.</onlyinclude> | <onlyinclude>Sets various options for TotalControl.</onlyinclude> | ||
{{API Variables Table}} | {{API Variables Table}} | ||
− | {{AdminBot Required Vars| | + | {{AdminBot Required Vars|BOT_SETUP_SETOPTIONS}} |
{{API Variable|str|yes}} options list, separated by commas. See the available options below. | {{API Variable|str|yes}} options list, separated by commas. See the available options below. | ||
{{API Variable|id|yes}} -- | {{API Variable|id|yes}} -- | ||
Line 19: | Line 19: | ||
<syntaxhighlight lang="lsl"> | <syntaxhighlight lang="lsl"> | ||
− | llMessageLinked(LINK_SET, | + | llMessageLinked(LINK_SET, BOT_SETUP_SETOPTIONS, "NO_OWNERCHANGE_RESET", NULL_KEY); |
+ | </syntaxhighlight> | ||
+ | |||
+ | <syntaxhighlight lang="lsl"> | ||
+ | integer BOT_SETUP_SETOPTIONS = 280104; | ||
+ | |||
+ | default | ||
+ | { | ||
+ | state_entry() | ||
+ | { | ||
+ | llMessageLinked(LINK_SET, BOT_SETUP_SETOPTIONS, "NO_OWNERCHANGE_RESET", NULL_KEY); | ||
+ | } | ||
+ | } | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Revision as of 01:43, 13 March 2019
Sets various options for TotalControl.
Variables
The following table shows input values (you send them with the API call) and returned output values.
Variable | Required | Description
| |
---|---|---|---|
str | yes | options list, separated by commas. See the available options below. | |
id | yes | -- |
Available Options
The following options are currently available:
- NO_OWNERCHANGE_RESET - TotalControl does not reset itself on object owner change
Example
llMessageLinked(LINK_SET, BOT_SETUP_SETOPTIONS, "NO_OWNERCHANGE_RESET", NULL_KEY);
integer BOT_SETUP_SETOPTIONS = 280104;
default
{
state_entry()
{
llMessageLinked(LINK_SET, BOT_SETUP_SETOPTIONS, "NO_OWNERCHANGE_RESET", NULL_KEY);
}
}