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
Rotation say_rotation  

say_rotation

say rotation.lsl

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

the Zip file

Download all files for say_rotation
Contents are in zip format, with .LSL (text) source code and LSLEdit (text + Solution) formats.
Get file # 1. say_rotation_1.lsl
1
2 // Name and Description
3 // Say Rotation
4 // This script says it's rotations in Quaternion and Vector when it's touched
5 //bpJ
6 // global variable that isn't exposed
7
8
9 // state sections
10 // default state # all scripts must have a default state
11
12 default
13 {
14 // when a state is transitioned to, the state_entry event is raised
16 {
17
18 }
19
20 touch_start(integer number)
21 {
22 rotation gQuatRotation = llGetRot();
23 llSay(0, "Quat rotation =" + (string)gQuatRotation);
24 vector gRotation = llRot2Euler(gQuatRotation);
25 llShout(0, "vector rotation =" + (string)gRotation);
26 // key ownerKey = llGetOwner();
27 // llSay(0, "owner's key = " + (string)ownerKey);
28 // llWhisper(0, "owner's key = " + (string)ownerKey);
29 // llInstantMessage(ownerKey, "owner's key = " + (string)ownerKey);
30 }
31
32 }// END //

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