Join us in Outworldz at www.outworldz.com:9000 or follow us:

Search dozens of selected web sites for OpenSim and LSL script

New! Script Meta-Search will search thousands of scripts here and at other sites for LSL or Opensim scripts.
Loading

Want to add a script or a project? Upload it and a half million people will see it and your name here this year.

Home   Show All
Category: Contributor: Creator
Animation SmokingActions  

SmokingActions

SmokingActions.lsl

Category: Animation
By : Anonymous
Created: 2010-01-10 Edited: 2010-01-10
Worlds: Second Life

the Zip file

Download all files for SmokingActions
Contents are in zip format, with .LSL (text) source code and LSLEdit (text + Solution) formats.
Get file # 1. SmokingActions_1.lsl
1
2
3 integer gTimeout = 10;
4
5 default
6 {
8 {
9
10 }
11
12 attach(key on)
13 {
14 if(on != NULL_KEY)
15 {
17 llSetTimerEvent(0.0);
18 llSetTimerEvent(gTimeout);
19 }
20 else
21 {
22 llSetTimerEvent(0.0);
23 }
24 }
25
26 timer()
27 {
28 float choice;
29 choice = llFrand(3.0);
30 if(choice < 2.5)
31 {
32 llStartAnimation("smoke_inhale");
33 }
34 else
35 {
36 llStartAnimation("smoke_inhale");
37 }
38 }
39
40 }
41 // END //

Back to the Best Free Tools in Second Life and OpenSim.