Difference between revisions of "TotalControl for LSL/Commands/BOT SETUP SETLINK"

From SmartBots Developers Docs
Jump to: navigation, search
m
(Updated example)
 
Line 1: Line 1:
 
{{DISPLAYTITLE:BOT_SETUP_SETLINK}}
 
{{DISPLAYTITLE:BOT_SETUP_SETLINK}}
 
<onlyinclude>Commands TotalCotrol to use specific link number for llMessageLinked calls instead of LINK_SET.</onlyinclude>
 
<onlyinclude>Commands TotalCotrol to use specific link number for llMessageLinked calls instead of LINK_SET.</onlyinclude>
 +
 +
<syntaxhighlight lang="lsl">
 +
llMessageLinked(LINK_SET, BOT_SETUP_SETLINK, "15", NULL_KEY);
 +
</syntaxhighlight>
  
 
{{API Variables Table}}
 
{{API Variables Table}}
Line 19: Line 23:
  
 
<syntaxhighlight lang="lsl">
 
<syntaxhighlight lang="lsl">
llMessageLinked(LINK_SET, BOT_SETUP_SETLINK, "15", NULL_KEY);
+
integer BOT_SETUP_SETLINK = 280102;
 +
 
 +
default
 +
{
 +
state_entry()
 +
{
 +
llMessageLinked(LINK_SET, BOT_SETUP_SETLINK, "15", NULL_KEY);
 +
}
 +
}
 
</syntaxhighlight>
 
</syntaxhighlight>
  

Latest revision as of 01:59, 13 March 2019

Commands TotalCotrol to use specific link number for llMessageLinked calls instead of LINK_SET.

llMessageLinked(LINK_SET, BOT_SETUP_SETLINK, "15", 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 new link number (instead of default LINK_SET)
id yes --

Comments

This command is being used to optimize your device performance for high-prim objects.

TotalControl sends events to LINK_SET by default. You can specify exact link number of the prim to optimize performance.

Example

integer BOT_SETUP_SETLINK = 280102;

default
{
	state_entry()
	{
		llMessageLinked(LINK_SET, BOT_SETUP_SETLINK, "15", NULL_KEY);
	}
}