Difference between revisions of "User:Fred Gandt/Scripts/Continued 4"

From Second Life Wiki
Jump to navigation Jump to search
m (oops)
m (→‎Touch Texture Setter: and another oops)
Line 31: Line 31:
== Free Scripts ==
== Free Scripts ==


=== Touch Texture Setter ===
=== Touch Texture Setter ( V1 ) ===


'''Fill out the UUID for the texture to set. Drop the script in the prim to texture. The texture then sets on each face touched. A long held touch will delete the script.'''
'''Fill out the UUID for the texture to set. Drop the script in the prim to texture. The texture then sets on each face touched. A long held touch will delete the script.'''


<lsl>key texture_uuid = "f05755e7-d31c-116d-9cf2-a4840bdfc56b"; // The UUID of the texture to set.
<lsl>// V1 //
 
key texture_uuid = "f05755e7-d31c-116d-9cf2-a4840bdfc56b"; // The UUID of the texture to set.


integer tc;
integer tc;

Revision as of 02:42, 28 March 2010

FG jpg.jpg

My Contributions

I have implemented a V# system to make it more obvious if a script is updated. The V# forms part of the title of each script.

If you have any comments about the content of this page please post them HERE

More Pages

Free Scripts (content constantly updating)

More Free Scripts (content constantly updating)

Even More Free Scripts (content constantly updating)

Even More More Free Scripts (content constantly updating)

Legal Stuff

The legal stuff about contributing to this wiki (worth reading).

Tuition

Tuition scripts, notes, videos and screenshots etc. (hardly any content yet)

Free Scripts

Touch Texture Setter ( V1 )

Fill out the UUID for the texture to set. Drop the script in the prim to texture. The texture then sets on each face touched. A long held touch will delete the script.

<lsl>// V1 //

key texture_uuid = "f05755e7-d31c-116d-9cf2-a4840bdfc56b"; // The UUID of the texture to set.

integer tc;

key owner;

default {

   state_entry()
   {
       owner = llGetOwner();
   }
   touch_end(integer nd)
   {
       while(nd--)
       {
           if(llDetectedKey(0) == owner)
           {
               tc = 0;
               llSetTexture(texture_uuid, llDetectedTouchFace(0));
           }
       }
   }
   touch(integer nd)
   {
       while(nd--)
       {
           if(llDetectedKey(0) == owner)
           {
               if((++tc) == 20)
               llRemoveInventory(llGetScriptName());
           }
       }
   }

}</lsl>

More Scripts...

Free Scripts (content constantly updating)

More Free Scripts (content constantly updating)

Even More Free Scripts (content constantly updating)

Even More More Free Scripts (content constantly updating)

If you have any comments about the content of this page please post them HERE