Join us in Phaze Demesnes

LSL Script Library Home   Add a script Show All
Category: Contributor: Description
ANimation Anonymous DrinkScript.lsl
Drink script, no falling down
DrinkScript.lsl

Download this script - Please use this link to get this script. If you see all the code on one long line, please use Wordpad or another editor, such as LSLEdit.exe. The .LSL file you will download is an ordinary text file.

1 // CATEGORY:ANimation
2 // DESCRIPTION:Drink script, no falling down
3 // ARCHIVED BY:Ferd Frederix
4
5 integer flag = 0;
6
7
8 default
9 {
11 {
13
14 }
15
17 {
19 {
21
22 llStartAnimation("hold_R_handgun");
23 }
24
25 }
26
28 {
30 }
31
33 {
34 llStopAnimation("hold_R_handgun");
35 }
36
37
38
39
40 timer()
41 {
42
43 if(flag == 0)
44 {
45 llStartAnimation("drink");
46 }
47
48
49
50 if(flag == 1)
51 {
52 llStartAnimation("drink");
53 }
54
55 flag = flag + 1;
56
57 if(flag == 4)
58 {
59 flag = 0;
60 }
61
62 }
63
64
65
66
67 listen(integer channel, string name, key id, string message)
68 {
69 }
70
71
72 }
73 // END //