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

From SmartBots Developers Docs
Jump to: navigation, search
(Created page with "{{DISPLAYTITLE:BOT_RESET_ADMINBOT}} <onlyinclude>Invokes llResetScript() for AdminBot script.</onlyinclude> <syntaxhighlight lang="lsl"> llMessageLinked(LINK_SET,BOT_RESET_AD...")
 
Line 8: Line 8:
 
{{API Variables Table}}
 
{{API Variables Table}}
  
{{AdminBot Required Vars|BOT_SETUP_SETBOT}}
+
{{AdminBot Required Vars|BOT_RESET_ADMINBOT}}
 
{{API Variable|str|yes}} ---
 
{{API Variable|str|yes}} ---
 
{{API Variable|id|yes}} ---
 
{{API Variable|id|yes}} ---

Revision as of 03:40, 7 July 2016

Invokes llResetScript() for AdminBot script.

llMessageLinked(LINK_SET,BOT_RESET_ADMINBOT, "", 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 AdminBot script (for example, on object owner change). Invokes llResetScript() for AdminBot script. Don't forget to issue BOT_SETUP_SETBOT afterwards.

Example

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