zzzz

Join us in Phaze Demesnes or follow us:

Home   Show All
Category: Contributor: Creator
Dance Spinning_DanceBall_with_random_colo  

Spinning_DanceBall_with_random_colo

Spinning_DanceBall_with_random_colo

Category: Dance
By : Anylyn Hax
Created: 2011-01-22 Edited: 2011-01-22
Worlds: Second Life + OpenSim

the Zip file

Download all files for Spinning_DanceBall_with_random_colo
Contents are in zip format, with .LSL (text) source code and LSLEdit (text + Solution) formats.
Get file # 1. Spinning_DanceBall_with_random_colo_1.lsl
1 list anis;
2 integer CHANNEL;
3 integer lisi;
4
5 MakeTheBall()
6 {
9 PRIM_FLEXIBLE, FALSE, 0, 0.0, 0.0, 0.0, 0.0, ZERO_VECTOR
13 , PRIM_POINT_LIGHT, FALSE, ZERO_VECTOR, 0.0, 0.0, 0.0
14 , PRIM_SIZE, <1.5,1.5,1.5>
16 , PRIM_TYPE, PRIM_TYPE_SPHERE, 0, <0.0,1.0,0.0>, 0.0, ZERO_VECTOR, <0.0,1.0,0.0>
19 , PRIM_COLOR, ALL_SIDES, <0.705,0.449,0.807>, 1.0
21 , PRIM_TEXTURE, ALL_SIDES, "42d9ac0b-d423-94f0-9fd5-db3162b0d4ea", <4.0,12.0,0.0>, <0,0,0>, 0.5
22 ]);
23 llSetTextureAnim(ANIM_ON | SMOOTH | LOOP , ALL_SIDES, 0, 1, 0.0, 1.0, 0.1);
24 anis = ["STOP"];
25 integer a=0;
27 return;
28 }
29
30 default
31 {
32 state_entry(){MakeTheBall();}
33 changed(integer change){if (change & CHANGED_INVENTORY){MakeTheBall();}}
34 timer()
35 {
36 float rot = llFrand(1.0);
37 float gruen = llFrand(1.0);
38 float blau = llFrand(1.0);
39 //llSetColor(<rot,gruen,blau> , ALL_SIDES );
40 llSetLinkPrimitiveParamsFast(LINK_THIS,[PRIM_COLOR, ALL_SIDES, <rot,gruen,blau>, 1.0]);
42 }
45 {
47 {
48 CHANNEL = llRound(llFrand(-99999999.9));
49 lisi = llListen(CHANNEL,"","","");
50 llDialog(llGetPermissionsKey(), "Choose the dance ",anis,CHANNEL);
51 }
52 }
54 {
55 if ( chan==CHANNEL && id == llGetPermissionsKey() && mess != "STOP")
56 {llStartAnimation(mess);llListenRemove(lisi);}
57 if ( chan==CHANNEL && id == llGetPermissionsKey() && mess == "STOP")
58 {
61 llListenRemove(lisi);
62 }
63 }
64 }