Push All Scripts
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
vti_encoding:SR|utf8-nl
|
||||
vti_timelastmodified:TR|08 Sep 2013 03:49:07 -0000
|
||||
vti_extenderversion:SR|12.0.0.6211
|
||||
vti_backlinkinfo:VX|
|
||||
vti_author:SR|alien\\fred
|
||||
vti_modifiedby:SR|alien\\fred
|
||||
vti_timecreated:TR|18 Sep 2013 20:39:06 -0000
|
||||
@@ -0,0 +1,44 @@
|
||||
// :CATEGORY:Texture
|
||||
// :NAME:texture_rotate__with_llRotateTexture
|
||||
// :AUTHOR:Green Fate
|
||||
// :CREATED:2010-01-10 05:20:56.000
|
||||
// :EDITED:2013-09-18 15:39:06
|
||||
// :ID:878
|
||||
// :NUM:1238
|
||||
// :REV:1.0
|
||||
// :WORLD:Second Life
|
||||
// :DESCRIPTION:
|
||||
// texture rotate with llRotateTexture + timer example.lsl
|
||||
// :CODE:
|
||||
|
||||
// chunk of code that rotate a texture.
|
||||
// Green Fate + ixO Baskerville
|
||||
|
||||
float rad = 0.0;
|
||||
float radinc = 0.05;
|
||||
float time_inc = .2;
|
||||
float rotspeed = 3.2;
|
||||
|
||||
default
|
||||
{
|
||||
|
||||
state_entry()
|
||||
{
|
||||
// llSetTimerEvent( time_inc );
|
||||
llSetTextureAnim(ANIM_ON | ROTATE | LOOP | SMOOTH, ALL_SIDES, 0, 0, 0, 100, rotspeed);
|
||||
}
|
||||
|
||||
timer()
|
||||
{
|
||||
if ( rad < 6.28318530717958 )
|
||||
{
|
||||
rad = rad + radinc;
|
||||
}
|
||||
else
|
||||
{
|
||||
// llSay(0, "6.28318530717958 or something");
|
||||
rad = 0;
|
||||
}
|
||||
// llRotateTexture( rad, 0 );
|
||||
}
|
||||
}// END //
|
||||
Reference in New Issue
Block a user