Difference between revisions of "TotalControl for LSL/Commands/BOT RESET TOTALCONTROL"

From SmartBots Developers Docs
Jump to: navigation, search
(Updated example)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{DISPLAYTITLE:BOT_RESET_ADMINBOT}}
+
{{DISPLAYTITLE:BOT_RESET_TOTALCONTROL}}
 
<onlyinclude>Invokes llResetScript() for TotalControl script.</onlyinclude>
 
<onlyinclude>Invokes llResetScript() for TotalControl script.</onlyinclude>
  
 
<syntaxhighlight lang="lsl">
 
<syntaxhighlight lang="lsl">
llMessageLinked(LINK_SET, BOT_RESET_ADMINBOT, "", NULL_KEY);
+
llMessageLinked(LINK_SET, BOT_RESET_TOTALCONTROL, "", NULL_KEY);
 
</syntaxhighlight>
 
</syntaxhighlight>
  
 
{{API Variables Table}}
 
{{API Variables Table}}
  
{{AdminBot Required Vars|BOT_RESET_ADMINBOT}}
+
{{AdminBot Required Vars|BOT_RESET_TOTALCONTROL}}
 
{{API Variable|str|yes}} ---
 
{{API Variable|str|yes}} ---
 
{{API Variable|id|yes}} ---
 
{{API Variable|id|yes}} ---
Line 21: Line 21:
  
 
<syntaxhighlight lang="lsl">
 
<syntaxhighlight lang="lsl">
on_rez(integer param) {
+
integer BOT_RESET_TOTALCONTROL = 9997770;
  llMessageLinked(LINK_SET, BOT_RESET_ADMINBOT, "", NULL_KEY);
+
 
 +
default
 +
{
 +
on_rez(integer param)
 +
{
 +
llMessageLinked(LINK_SET, BOT_RESET_TOTALCONTROL, "", NULL_KEY);
 +
}
 
}
 
}
 
</syntaxhighlight>
 
</syntaxhighlight>

Latest revision as of 01:23, 13 March 2019

Invokes llResetScript() for TotalControl script.

llMessageLinked(LINK_SET, BOT_RESET_TOTALCONTROL, "", 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 ---
id yes ---

Comments

The command completely resets the TotalControl script (for example, on object owner change). Invokes llResetScript() for TotalControl script. Don't forget to issue BOT_SETUP_SETBOT afterwards.

Example

integer BOT_RESET_TOTALCONTROL = 9997770;

default
{
	on_rez(integer param)
	{
		llMessageLinked(LINK_SET, BOT_RESET_TOTALCONTROL, "", NULL_KEY);
	}
}