Create [LP] ELEVATOR SEAT STOP.lsl

This commit is contained in:
Jessica Pixel
2014-11-17 14:01:14 -05:00
parent f127f18a40
commit d7d718e34c
+42
View File
@@ -0,0 +1,42 @@
// ELEVATOR STOP
// JESSYKA RICHARD / JESSICA PIXEL
// LIFTEDPIXEL.NET 2014
integer Channel = 122;
integer Handle;
string LocationName;
default
{
on_rez ( integer start_param )
{
llResetScript();
}
state_entry ()
{
Handle = llListen ( Channel, "", NULL_KEY, "" );
}
listen ( integer channel, string name, key id, string message )
{
if ( message == "LOCATIONS" )
{
LocationName = llGetObjectDesc();
llRegionSay ( Channel, LocationName );
}
else if ( message == LocationName )
{
llRegionSay ( Channel, "COME HERE" );
}
}
touch_start ( integer num_detected )
{
LocationName = llGetObjectDesc();
llSay ( PUBLIC_CHANNEL, LocationName + " clicked..." );
llRegionSay ( Channel, "COME HERE" );
}
}