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
Rezzers Relational_Rezzer  

Relational_Rezzer

While the example in the wiki at LlRezAt...

Category: Rezzers
By : Innula Zenovka
Created: 2010-11-16 Edited: 2010-11-16
Worlds: Second Life

the Zip file

Download all files for Relational_Rezzer
Contents are in zip format, with .LSL (text) source code and LSLEdit (text + Solution) formats.
Get file # 1. Relational_Rezzer_1.lsl
Get file # 2. Relational_Rezzer_2.lsl
1 //Sample rezzer script by Innula Zenovka Jan 27 2010
2 // released under the "do what the hell you want with it" licence
3
4 vector rezzer_pos = <68.4949, 151.2232, 25.6000>; // the position of the rezzer when first you set it up
5 rotation rezzer_rot; // you could read the rotation by script, enter it here and comment out the next line
6 vector rezzer_rot_window = <180.05,0.00,52.00>; // the numbers in the rotation box in the edit window
7
8 vector child_pos = <133.67170, 156.75260, 1751.52900> ; // the position of the rezzed object at first set up
9 rotation child_rot;// you could read the rotation by script, enter it here and comment out the next line
10 vector child_rot_window =<320.25,11.05,257.00>;// the numbers in the rotation box in the edit window
11
12 vector offset;
13 default
14 {
16 {
17
18 rezzer_rot = llEuler2Rot(rezzer_rot_window*DEG_TO_RAD);
19 // you could comment this out and use the following line, to which it is equivalent
20 // rezzer_rot = <-0.50000, -0.50000, 0.50000, 0.50000>;
21 child_rot = llEuler2Rot(child_rot_window*DEG_TO_RAD);
22 // you could comment this out and use the following line, to which it is equivalent
23 //child_rot =<0.27363, 0.39548, 0.12470, 0.86785>;
24 offset = offset/rezzer_rot;
25 }
26
27 touch_start(integer total_number)
28 {
30 llGetPos()+offset*llGetRot(),
32 (child_rot/rezzer_rot)*llGetRot(),
33 99);
34 }
35 }

Relational_Rezzer

Helper Script

Category: Rezzers
By : Innula Zenovka
Created: 2010-11-16 Edited: 2010-11-16
Worlds: Second Life

1 //reads position and rotation
2 default
3 {
5 {
8 }
9
10
11 }

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