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

From SmartBots Developers Docs
Jump to: navigation, search
(Updated example)
Line 1: Line 1:
 
{{DISPLAYTITLE:BOT_SETUP_DEVICENAME}}
 
{{DISPLAYTITLE:BOT_SETUP_DEVICENAME}}
 
<onlyinclude>Sets the device name and device creator for your statistics purposes (you will be able to see who is using your device).</onlyinclude>
 
<onlyinclude>Sets the device name and device creator for your statistics purposes (you will be able to see who is using your device).</onlyinclude>
 +
 +
<syntaxhighlight lang="lsl">
 +
string deviceName="My Device v1.0";
 +
key creator=llGetCreator();
 +
 +
llMessageLinked(LINK_SET, BOT_SETUP_DEVICENAME, deviceName, creator);
 +
</syntaxhighlight>
  
 
{{API Variables Table}}
 
{{API Variables Table}}
Line 22: Line 29:
  
 
<syntaxhighlight lang="lsl">
 
<syntaxhighlight lang="lsl">
string deviceName="My Device v1.0";
+
integer BOT_SETUP_DEVICENAME = 280103;
key creator=llGetCreator();
+
 
+
default
llMessageLinked(LINK_SET, BOT_SETUP_DEVICENAME, deviceName, creator);
+
{
 +
state_entry()
 +
{
 +
string deviceName="My Device v1.0";
 +
key creator=llGetCreator();
 +
llMessageLinked(LINK_SET, BOT_SETUP_DEVICENAME, deviceName, creator);
 +
}
 +
}
 
</syntaxhighlight>
 
</syntaxhighlight>
  

Revision as of 01:48, 13 March 2019

Sets the device name and device creator for your statistics purposes (you will be able to see who is using your device).

string deviceName="My Device v1.0";
key creator=llGetCreator();
 
llMessageLinked(LINK_SET, BOT_SETUP_DEVICENAME, deviceName, creator);

Variables

The following table shows input values (you send them with the API call) and returned output values.

Variable Required Description


str yes device name (given by the creator)
id yes creator avatar's UUID

Comments

This command is to set the device name for your statistics purposes (you will be able to see who is using your device).

The list of devices is being displayed in "Developer" menu at SmartBots account.

  1. We advice to put version number along with the device name. This will allow you to see all residents using old and outdated devices, and contact them.
  2. The author's UUID is required to show your all active devices to the author.

Example

integer BOT_SETUP_DEVICENAME = 280103;

default
{
	state_entry()
	{
		string deviceName="My Device v1.0";
		key creator=llGetCreator();
		llMessageLinked(LINK_SET, BOT_SETUP_DEVICENAME, deviceName, creator);
	}
}