Change font size
It is currently Sun Jul 22, 2018 3:23 pm

Forum rules


{L_IMAGE}



Post a new topicPost a reply Page 1 of 1   [ 1 post ]
Author Message
 Post subject: A slightly better teleporter
PostPosted: Thu Feb 14, 2008 9:40 am 
Site Admin
User avatar

Joined: Sun Feb 03, 2008 9:10 am
Posts: 48
Location: Suburbia Americana in the Houston Texas area
// This is my crude skybox teleporter script. To use it, drop it in the teleporter prim, sit on it, and say 'up' or
// 'dn'. You do not need to be sitting on it to give it a command, so you can send it back for someone else.
// This must be done manually however.
//
// It doesn't use llResetScript(), so should be a lil more forgiving wrt current issues att of this post.
//
// a tip o' the hat to Pablo Pharmanaut :D
//
// teh scriptage:

integer lhandle = 0;

default
{
state_entry()
{
llSay(0, "Elevator ready! Touch and/or sit, then give command in open chat (up/dn)");
}

touch_start(integer num_times)
{
lhandle = llListen(0, "", "", "");
llSetTimerEvent(60);
llSay(0, "60 seconds to be seated and give command on open chat (up/dn)");
}

listen(integer chan, string name, key dakey, string msg)
{
if(msg == "up")
{
llSetPos(<200,188,600>);
}
else if(msg == "dn")
{
llSetPos(<135.5,136.5,27>);
}
}

timer()
{
llSay(0, "Listen has expired - Sit/touch again to give a new command (up/dn)");
llSetTimerEvent(0);
llListenRemove(lhandle);
}

// Cheers!
// Hiro P


Top
 Profile  
 
Display posts from previous:  Sort by  
Post a new topicPost a reply Page 1 of 1   [ 1 post ]


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
610nm Style by Daniel St. Jules of Gamexe.net