removed useless _ folders
This commit is contained in:
45
WheelScript/WheelScript/Object/WheelScript_1.lsl
Normal file
45
WheelScript/WheelScript/Object/WheelScript_1.lsl
Normal file
@@ -0,0 +1,45 @@
|
||||
// :CATEGORY:Vehicles
|
||||
// :NAME:WheelScript
|
||||
// :AUTHOR:Encog Dod
|
||||
// :CREATED:2010-01-10 05:20:56.000
|
||||
// :EDITED:2013-09-18 15:39:09
|
||||
// :ID:975
|
||||
// :NUM:1397
|
||||
// :REV:1.0
|
||||
// :WORLD:Second Life
|
||||
// :DESCRIPTION:
|
||||
// WheelScript
|
||||
// :CODE:
|
||||
// From the book:
|
||||
//
|
||||
// Scripting Recipes for Second Life
|
||||
// by Jeff Heaton (Encog Dod in SL)
|
||||
// ISBN: 160439000X
|
||||
// Copyright 2007 by Heaton Research, Inc.
|
||||
//
|
||||
// This script may be freely copied and modified so long as this header
|
||||
// remains unmodified.
|
||||
//
|
||||
// For more information about this book visit the following web site:
|
||||
//
|
||||
// http://www.heatonresearch.com/articles/series/22/
|
||||
default
|
||||
{
|
||||
state_entry()
|
||||
{
|
||||
llSetTimerEvent(0.20);
|
||||
}
|
||||
timer()
|
||||
{
|
||||
vector vel = llGetVel();
|
||||
float speed = llVecMag(vel);
|
||||
if(speed > 0)
|
||||
{
|
||||
llSetTextureAnim(ANIM_ON | SMOOTH | LOOP, 0, 0, 0, 0, 1, speed*0.5);
|
||||
}
|
||||
else
|
||||
{
|
||||
llSetTextureAnim(ANIM_ON | SMOOTH | LOOP | REVERSE, 0, 0, 0, 0, 1, speed*0.5);
|
||||
}
|
||||
}
|
||||
}
|
||||
6
WheelScript/WheelScript/WheelScript.prj
Normal file
6
WheelScript/WheelScript/WheelScript.prj
Normal file
@@ -0,0 +1,6 @@
|
||||
<Project name="WheelScript" guid="D6B1D45A-6C00-1014-B904-200204C60A89">
|
||||
<Object name="Object" guid="D6B1D563-6C00-1014-B904-200204C60A89">
|
||||
<Script name="WheelScript_1.lsl" guid="D6B23A0C-6C00-1014-B904-200204C60A89">
|
||||
</Script>
|
||||
</Object>
|
||||
</Project>
|
||||
Reference in New Issue
Block a user