Jump to content
  • 0

Prim that is phantom on one side and solid on the other


Sally Ellisson
 Share

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

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

Question

  • 0

Yes and no, it can`t be done literally as you described because a prim is either solid or phantom. What you can do is set it up so that when someone causes a collision with one side (or a prim on that side) it turns the wall phantom for a few seconds while they walk through it and then goes solid again. With no trigger on the other side, it would only work one way.

You can ask for advice on the scripting forum http://community.secondlife.com/t5/LSL-Scripting/bd-p/LSLScripting on how to do that if you are not a scripter.

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0

Yes and no, it can`t be done literally as you described because a prim is either solid or phantom. What you can do is set it up so that when someone causes a collision with one side (or a prim on that side) it turns the wall phantom for a few seconds while they walk through it and then goes solid again. With no trigger on the other side, it would only work one way.

You can ask for advice on the scripting forum http://community.secondlife.com/t5/LSL-Scripting/bd-p/LSLScripting on how to do that if you are not a scripter.

Link to comment
Share on other sites

  • 0

Yes, but you'd have to write a script to do it.  It would require sensing which direction you were entering from, and then switching from no-phantom to phantom if you were entering from the correct side.  You can't just switch one face.  It's the whole prim.  Still, if you switch it back as soon as the person has passed  through, you should have the effect you want.

If you know how to script, take a look at the functions llDetectedTouchFace() and llSetPrimitiveParams ([PRIM_PHANTOM]). They are in the LSL wiki at http://wiki.secondlife.com/wiki/LlDetectedTouchFace and http://wiki.secondlife.com/wiki/LlSetPrimitiveParams , respectively.  If you get stuck, post what you have done in the Scripting forum and someon will help.  If you don't know how to script and want to hire a scripter, post your request in the Wanted Secotion of the Commerce Forums.

Link to comment
Share on other sites

  • 0

Since, as you've read, this needs a scripted solution anyway I'd suggest using a teleporter to take them into the maze, even if that just means moving them a couple of metres.  If a prim is going phantom for a while people could cheat and 'hold the door open' while their mates sneaked out ;-0

Link to comment
Share on other sites

  • 0

There used to be a way that is really a bug.  I don't know if it still works, and it requires your maze to be next to a region border with access on the other side. If you walk across a sim border into a non-phantom prim, your position could be updated before the region started to detect your collisions. If the prim was large, you would be nudged out of its volume, but if it was narrow, it was possible to get right through it before you started colliding. Then you were trapped the other side of it. 

Link to comment
Share on other sites

  • 0

Oh this is an old entry, but there is a way no doubt, and it's pretty simple. There are several ways, you can let a script sense what face is touched, then set the prim to phantom for a short period, or you can use two prims and make one sensitive to collision or touch, let it send a message to both prims and make them phantom for a short period. This should be a couple of lines of scripting. A more sophisticated way is a sensor in one direction which scans half a sphere, this is a bit more complicated but pretty straight forward aswell and if you want to operate the door by touch it is the way to do it.

Link to comment
Share on other sites

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

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...