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 Ball Ghost of Castle Blue  

Ghost of Castle Blue

A pose ball to scare people

Category: Pose Ball
By : Ferd Frederix
Created: 2013-09-06 Edited: 2013-09-07
Worlds: Second Life

the Zip file

Download all files for Ghost of Castle Blue
Contents are in zip format, with .LSL (text) source code and LSLEdit (text + Solution) formats.
Get file # 1. Script.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
2
3 // setup variables
4 integer degrees = 0;
5 string sHoverText = "Click to see the\nGhost\nof\nCastle Blue\n \n \n \n";
6
7
8 //constants
9
10 rotation sitRot ;
11
12
13 ShowHover()
14 {
15 //llOwnerSay( "Showing" );
16 llSetText( sHoverText, <1.0,1.0,1.0>, 1.0);
17 //add a slight delay to avoid sending too many messages to the prim
18 llSleep( 0.5 );
19 }
20
21 HideHover()
22 {
23 //llOwnerSay( "Hiding" );
24 llSetText( "", <1.0,1.0,1.0>, 0.0 );
25 //llSleep( 0.5 );
26 }
27
28
29 // Sit the avatar looking at an arbitrary direction
30 // Look over the avatar's shoulders from behind once it sits down
31
32 back_view(float degrees)
33 {
34
35 llSetCameraEyeOffset(<-2, 0, 1> * sitRot);
36 llSetCameraAtOffset(<2, 0, 1> * sitRot);
37 }
38
39
40
41 default
42 {
44 {
45 // setup sit target
46 sitRot = llAxisAngle2Rot(<0, 0, 1>, degrees * DEG_TO_RAD);
47 llSitTarget(<0, 0, 0.1>, ZERO_ROTATION);
48 ShowHover();
49 }
50
51 changed( integer iChange )
52 {
53 if( iChange & CHANGED_LINK )
54 {
55 key kAgent = llAvatarOnSitTarget();
56
57 //llOwnerSay( "kAgent=" + (string)kAgent );
58 if( kAgent == NULL_KEY )
59 {
60 ShowHover();
61 }
62 else
63 {
64 llPlaySound("sound",0.11);
65 HideHover();
66 back_view( degrees );
67 }
68 }
69 }
70 }

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