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 DrinkScript  

DrinkScript

DrinkScript.lsl

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

the Zip file

Download all files for DrinkScript
Contents are in zip format, with .LSL (text) source code and LSLEdit (text + Solution) formats.
Get file # 1. DrinkScript_1.lsl
1
2 integer flag = 0;
3
4
5 default
6 {
8 {
10
11 }
12
14 {
16 {
18
19 llStartAnimation("hold_R_handgun");
20 }
21
22 }
23
24 on_rez(integer st)
25 {
27 }
28
29 attach(key id)
30 {
31 llStopAnimation("hold_R_handgun");
32 }
33
34
35
36
37 timer()
38 {
39
40 if(flag == 0)
41 {
42 llStartAnimation("drink");
43 }
44
45
46
47 if(flag == 1)
48 {
49 llStartAnimation("drink");
50 }
51
52 flag = flag + 1;
53
54 if(flag == 4)
55 {
56 flag = 0;
57 }
58
59 }
60
61
62
63
64 listen(integer channel, string name, key id, string message)
65 {
66 }
67
68
69 }
70 // END //

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