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
Pose Balls SitOnAnimate  

SitOnAnimate

SitOnAnimate.lsl

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

the Zip file

Download all files for SitOnAnimate
Contents are in zip format, with .LSL (text) source code and LSLEdit (text + Solution) formats.
Get file # 1. SitOnAnimate_1.lsl
1
2 key owner;
3 key sitter;
4
5 string curanim;
6
7 default
8 {
11 {
12 owner=llGetOwner();
13 vector eul = <0,0,0>; //45 degrees around the z-axis, in Euler form
14 eul *= DEG_TO_RAD; //convert to radians
15 rotation quat = llEuler2Rot(eul); //convert to quaternion
16 llSitTarget(<0,0,-1>,ZERO_ROTATION);
17 }
18
19 touch_start(integer total_number){
20
21 }
22
23 changed(integer change) { // something changed
25 if(change & CHANGED_LINK) { // and it was a link change
26 llSleep(0.5); // llUnSit works better with this delay
27 if(llAvatarOnSitTarget() != NULL_KEY) { // somebody is sitting on me
28 sitter=llAvatarOnSitTarget();
30 llStopAnimation("sit");
31 llStartAnimation(curanim);
32 llLoopSound("loop-galaxie", 1.0);
33
34 }else{llStopAnimation(curanim);sitter=NULL_KEY;}
35 }
36 }
37 }
38 // END //

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