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 cross_leg_sit  

cross_leg_sit

cross leg sit.lsl

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

the Zip file

Download all files for cross_leg_sit
Contents are in zip format, with .LSL (text) source code and LSLEdit (text + Solution) formats.
Get file # 1. cross_leg_sit_1.lsl
1
2 //script for sitting cross legged on an object
3 //by Ananda Sandgrain - free to distribute but please don't sell!
4
5 key avatar;
6 vector pos = <-0.25,0,0.8>; //adjust the position to fit object -must be
7 //nonzero in at least one direction or script will not work!
8 rotation rot = <0,0,0,1>; //adjust rotation (1 in any vector gives 90 deg)
9
10 default
11 {
13 {
14 llSitTarget(pos, rot);
15 }
16 changed(integer change)
17 {
18 avatar = llAvatarOnSitTarget();
19 if(change & CHANGED_LINK)
20 {
21 if(avatar == NULL_KEY)
22 {
23 // You have gotten off
24 llStopAnimation("sit_ground");
27 }
28 else if(avatar == llAvatarOnSitTarget())
29 {
30 // You have gotten on
32 }
33 }
34 }
36 {
37 if(perms)
38 {
39 llStopAnimation("sit");
40 llStartAnimation("sit_ground");
41 }
42 else
43 {
44 llUnSit(avatar);
45 }
46 }
47 }
48 // END //

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