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 Offsim_pose_ball  

Offsim_pose_ball

Offsim_pose_ball

Category: Pose Balls
By : Ferd Frederix
Created: 2012-03-10 Edited: 2012-03-10
Worlds: Second Life

the Zip file

Download all files for Offsim_pose_ball
Contents are in zip format, with .LSL (text) source code and LSLEdit (text + Solution) formats.
Get file # 1. Offsim_pose_ball_1.lsl

This script by Ferd Frederix may be used in any manner, modified, and republished.  Unless specified otherwise, my scripts are always free and open source.  Objects made with these scripts may be sold with no restrictions.  All I ask is that you point others to this location should they ask you about it and to not sell this script, unless it is for $0 L. Please help improve my work by reporting bugs and improvements.

1 // off sim sit by Ferd Frederix
2
3 // position to sit on the ball e.g <0.0, 0.0, 0.43>
4 // sit 0.5 meter above the ball
5 vector POSITION=<0.0, 28, 8>; // must not be all zeros or the sit will be removed, this moves you 'up' 8 and out 28
6 vector ROT = <0,0,0>;
7
8 // hovertext above ball. "" for none. Add '\n ' at the end to move text up i.e.
9
10 string HOVERTEXT="Dance in the Sky";
11
12 // Pie Menu Sit Text. If no text
13 // is entered between "" it won't be used.
14 string SIT_TEXT="Dance";
15
16 string animation; // a place to store the animation name so we can stop it
17
18 default
19 {
21 {
22
23 if(llStringLength(SIT_TEXT)>0)
24 llSetSitText(SIT_TEXT);
25
26 rotation rot = llEuler2Rot(ROT * DEG_TO_RAD); // convert the degrees to radians, then convert that vector into a rotation, rot30x
27
28
29 llSitTarget(POSITION, rot);
30 }
31
33 {
35 }
36
37
38 changed(integer change)
39 {
40 if(change & CHANGED_LINK)
41 {
43 {
45 }
46 else
47 {
49 if((perm & PERMISSION_TRIGGER_ANIMATION) && llStringLength(animation)>0)
50 llStopAnimation(animation);
51 animation="";
52 }
53 }
54 }
56 {
58 {
59 llStopAnimation("sit");
61 llStartAnimation(animation);
62 }
63 }
64
65
66 }

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