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 BJ_Drinking_Script  

BJ_Drinking_Script

BJ Drinking Script.lsl

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

the Zip file

Download all files for BJ_Drinking_Script
Contents are in zip format, with .LSL (text) source code and LSLEdit (text + Solution) formats.
Get file # 1. BJ_Drinking_Script_1.lsl
1
2 string anim ="drink";
3 string anim2 ="hold_R_handgun";
4 string falldown = "drunkfall";
5 integer cntr = 0;
6 integer checkit = 3;
7 default
8 {
9 attach(key victim)
10 {
11 if(victim == NULL_KEY)
12 {
13 llStopAnimation(anim);
14 llStopAnimation(anim2);
16
17 }
18 else
19 {
21 }
22 }
23
24 run_time_permissions(integer permissions)
25 {
26 if(PERMISSION_TRIGGER_ANIMATION & permissions)
27 {
28 llStartAnimation(anim);
29 llStartAnimation(anim2);
30 llWhisper(0,"watch that third sip");
31
33 }
34 }
35
36 timer()
37 {
38 llStopAnimation(falldown);
39 llStartAnimation(anim2);
40 llStartAnimation(anim);
41 ++cntr;
42 if(cntr > 2) {
43 cntr = 0;
44 llStartAnimation(falldown);
45 }
46
47 }
48
49 }
50
51 // END //

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