<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.secondlife.com/w/index.php?action=history&amp;feed=atom&amp;title=User%3AGordon_Wendt%2Fsnippets</id>
	<title>User:Gordon Wendt/snippets - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.secondlife.com/w/index.php?action=history&amp;feed=atom&amp;title=User%3AGordon_Wendt%2Fsnippets"/>
	<link rel="alternate" type="text/html" href="https://wiki.secondlife.com/w/index.php?title=User:Gordon_Wendt/snippets&amp;action=history"/>
	<updated>2026-06-06T20:50:39Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.42.1</generator>
	<entry>
		<id>https://wiki.secondlife.com/w/index.php?title=User:Gordon_Wendt/snippets&amp;diff=470212&amp;oldid=prev</id>
		<title>Gordon Wendt: moving code over</title>
		<link rel="alternate" type="text/html" href="https://wiki.secondlife.com/w/index.php?title=User:Gordon_Wendt/snippets&amp;diff=470212&amp;oldid=prev"/>
		<updated>2009-08-22T06:26:13Z</updated>

		<summary type="html">&lt;p&gt;moving code over&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;=== Naming Trick ===&lt;br /&gt;
A cheap little trick to make the object name on the way the script name then change the object name back&lt;br /&gt;
&lt;br /&gt;
&amp;lt;lsl&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 default&lt;br /&gt;
 {&lt;br /&gt;
    state_entry()&lt;br /&gt;
      {&lt;br /&gt;
           a = llGetObjectName(); // grabs the current object name and stores it so it can be restored later&lt;br /&gt;
           llSetObjectName(llGetScriptName() ); // changes the object name to the script name ( see advanced use for more info)&lt;br /&gt;
           llOwnerSay(&amp;quot;this is the test statement&amp;quot;); // your test statement, said with the name of the script name&lt;br /&gt;
           llSetObjectName(a);// changes the object name back to what it originally was&lt;br /&gt;
           // ADVANCED USE: change llGetScriptName() to a string of text (surrounded by quotes (&amp;quot;&amp;quot;) or just change the script name&lt;br /&gt;
      }&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/lsl&amp;gt;&lt;/div&gt;</summary>
		<author><name>Gordon Wendt</name></author>
	</entry>
</feed>