Push All Scripts

This commit is contained in:
Fred Beckhusen
2015-08-07 10:38:47 -05:00
parent 2ad9795428
commit ce47ec2f3e
8079 changed files with 2442776 additions and 0 deletions

View File

@@ -0,0 +1,44 @@
// :CATEGORY:Building
// :NAME:ScaleByFactor
// :AUTHOR:Anonymous
// :KEYWORDS:
// :CREATED:2014-02-07 19:09:28
// :EDITED:2014-02-07 19:09:28
// :ID:1018
// :NUM:1582
// :REV:1
// :WORLD:Second Life
// :DESCRIPTION:
// Touching this script causes the object to double or halve in size.
// :CODE:
// From the Second Life Wiki.
// Copyright © 2009 Linden Research, Inc. Licensed under Creative Commons Attribution-Share Alike 3.0
// Touching this script causes the object to double or halve in size.
integer growing;
default
{
state_entry()
{
llSay(PUBLIC_CHANNEL, "Touch to toggle scale.");
}
touch_start(integer num_detected)
{
growing = !growing;
float min_factor = llGetMinScaleFactor();
float max_factor = llGetMaxScaleFactor();
llSay(PUBLIC_CHANNEL, "min_scale_factor = " + (string)min_factor
+ "\nmax_scale_factor = " + (string)max_factor);
integer success;
if (growing) success = llScaleByFactor(2.0);
else success = llScaleByFactor(0.5);
if (!success) llSay(PUBLIC_CHANNEL, "Scaling failed!");
}
}

View File

@@ -0,0 +1,6 @@
<Project name="ScaleByFactor" guid="10fcd18e-8fd1-44c8-b4cb-743f8fccf830">
<Object name="Object" guid="385c39fd-25aa-4ba6-86ea-eb100d42093d" active="true">
<Script name="Script.lsl" guid="24848c2d-0b7d-41e8-a085-b508bef9ca34">
</Script>
</Object>
</Project>