Difference between revisions of "TotalControl for LSL/Commands/BOT SETUP SETOPTIONS"
From SmartBots Developers Docs
(3 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
− | {{DISPLAYTITLE: | + | {{DISPLAYTITLE:BOT_SETUP_SETOPTIONS}} |
− | <onlyinclude>Sets various options for | + | <onlyinclude>Sets various options for TotalControl.</onlyinclude> |
+ | |||
+ | <syntaxhighlight lang="lsl"> | ||
+ | llMessageLinked(LINK_SET, BOT_SETUP_SETOPTIONS, "NO_OWNERCHANGE_RESET", NULL_KEY); | ||
+ | </syntaxhighlight> | ||
{{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 12: | Line 16: | ||
== Available Options == | == Available Options == | ||
− | The following options are | + | The following options are currently available: |
− | * '''NO_OWNERCHANGE_RESET''' - | + | * '''NO_OWNERCHANGE_RESET''' - TotalControl does not reset itself on object owner change |
== Example == | == Example == | ||
<syntaxhighlight lang="lsl"> | <syntaxhighlight lang="lsl"> | ||
− | llMessageLinked(LINK_SET, | + | integer BOT_SETUP_SETOPTIONS = 280104; |
+ | |||
+ | default | ||
+ | { | ||
+ | state_entry() | ||
+ | { | ||
+ | llMessageLinked(LINK_SET, BOT_SETUP_SETOPTIONS, "NO_OWNERCHANGE_RESET", NULL_KEY); | ||
+ | } | ||
+ | } | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Latest revision as of 01:45, 13 March 2019
Sets various options for TotalControl.
llMessageLinked(LINK_SET, BOT_SETUP_SETOPTIONS, "NO_OWNERCHANGE_RESET", NULL_KEY);
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
integer BOT_SETUP_SETOPTIONS = 280104;
default
{
state_entry()
{
llMessageLinked(LINK_SET, BOT_SETUP_SETOPTIONS, "NO_OWNERCHANGE_RESET", NULL_KEY);
}
}