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
Platform Platformer  

Platformer

The script for the worn attachment, which rezzes the platforms when the platformer is turned on(Assuming the platform object is in the attachment's inventory):

Category: Platform
By : Davy Maltz
Created: 2010-01-10 Edited: 2010-01-10
Worlds: Second Life

the Zip file

Download all files for Platformer
Contents are in zip format, with .LSL (text) source code and LSLEdit (text + Solution) formats.
Get file # 1. Platformer_1.lsl
Get file # 2. Platformer_2.lsl
1 default
2 {
4 {
5 llListen(0,"","","");
6 }
7 on_rez(integer start_param)
8 {
10 }
11 listen(integer channel,string name,key id,string message)
12 {
13 if(message==".on")
14 {
15 llSetTimerEvent(0.01);
16 }
17 if(message==".off")
18 {
19 llSetTimerEvent(0.0);
20 }
21 }
22 timer()
23 {
24 llRezObject("plat",llGetPos() - (llGetAgentSize(llGetOwner()) / 2) - <0,0,0.145>,ZERO_VECTOR,llGetRot(),1);
25 }
26 }

Platformer

And then the script to go inside of the platform, which then goes inside of the platformer attachment:

Category: Platform
By : Davy Maltz
Created: 2010-01-10 Edited: 2010-01-10
Worlds: Second Life

1 default
2 {
3 on_rez(integer start_param)
4 {
5 llSensor("",llGetOwner(),AGENT,20,TWO_PI);
6 llSleep(1.0);
7 llSetStatus(STATUS_PHYSICS|STATUS_PHANTOM,TRUE);
9 alpha = 1;
10 }
11 sensor(integer num_detected)
12 {
15 }
16 timer()
17 {
18 alpha = alpha - 0.07125;
19 llSetAlpha(alpha,ALL_SIDES);
20 if(alpha < 0)
21 {
22 llDie();
23 }
24 }
25 }

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