User:Gordon Wendt/snippets

From Second Life Wiki
< User:Gordon Wendt
Revision as of 23:26, 21 August 2009 by Gordon Wendt (talk | contribs) (moving code over)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Naming Trick

A cheap little trick to make the object name on the way the script name then change the object name back


          a = llGetObjectName(); // grabs the current object name and stores it so it can be restored later
          llSetObjectName(llGetScriptName() ); // changes the object name to the script name ( see advanced use for more info)
          llOwnerSay("this is the test statement"); // your test statement, said with the name of the script name
          llSetObjectName(a);// changes the object name back to what it originally was
          // ADVANCED USE: change llGetScriptName() to a string of text (surrounded by quotes ("") or just change the script name