[[Template core/front/global/favico is throwing an error. This theme may be out of date. Run the support tool in the AdminCP to restore the default theme.]] Jump to content

Looking for swinging door script with a combination lock


You are about to reply to a thread that has been inactive for 69 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

I want to use a combination lock for a swinging door. The functionality I visualize is that one would click on the door, and either a menu with numbered buttons or a prompt to type the combination in chat would appear, and when the correct combination was entered, the door would open.

Is such a script available anywhere?

Link to post
Share on other sites

The simplest way to do it, perhaps, is to have your script open a text box when you click on the door.  Something like this

llTextBox( llDetectedKey(0), "\n Please type in the combination now ... ", iChan);

In the listen event, do the normal checks to be sure that the person has typed the right combination, and then unlock the door.  You could certainly think of harder ways to do this ... even more elegant ones ... but that's all you need.

Link to post
Share on other sites
  • 2 weeks later...
  • 2 weeks later...
You are about to reply to a thread that has been inactive for 69 days.

Please take a moment to consider if this thread is worth bumping.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...