Category Archives: Building

Gestures

Copy and paste the script:default
{
state_entry()
{
llListen(42,"",llGetOwner(),"");
}

listen(integer channel,string name,key id,string message)
{
if(message == "open") llSetPrimitiveParams([PRIM_PHANTOM,TRUE]);

if(message == "close") llSetPrimitiveParams([PRIM_PHANTOM,FALSE]);
}
}

Advertisements

A Welcome Mat

Copy and paste the script:-

string previously_Welcomed;
default
{
touch_start(integer total_number)
{
llSetTimerEvent(30);
}
collision(integer numDetected)
{
if(llDetectedName(0) != previously_Welcomed)
{
previously_Welcomed=llDetectedName(0);
llSay(0,"Welcome " + llDetectedName(0));
}
}
timer()
{
previously_Welcomed = "";
}
}

A Night Light

Copy and paste the script:-

float sun_height;
vector sun_position;
default
{
state_entry()
{

}

touch_start(integer total_number)
{
llSetTimerEvent(600.0);
}
timer()
{
sun_position = llGetSunDirection();
sun_height = sun_position.z;

if(sun_height < 0.0)
{
llSetPrimitiveParams([PRIM_FULLBRIGHT,
ALL_SIDES,
TRUE]);
}
else
{
llSetPrimitiveParams([PRIM_FULLBRIGHT,
ALL_SIDES,
FALSE]);
}

}
}

Phantom Floor

Copy and paste the script:
default
{
state_entry()
{

}

touch_start(integer total_number)
{
llSetPrimitiveParams([PRIM_PHANTOM,TRUE]);
llSleep(5.0);
llSetPrimitiveParams([PRIM_PHANTOM,FALSE]);
}
}

Making a Sky Deck

The deck or base for a Sky Deck. Build it and set its Z-value to up in the sky.

Making a circular table

1. The Legs

2. The top

Stretching Textures Across Two Objects