Rise Hare
Registered User
Join date: 10 Oct 2004
Posts: 1
|
10-22-2004 18:51
Hey, Im looking for a script that will fit my 'Cage' Basically i want one face of the cage to open when called on a random channel.... And i don't mean open as open, but i mean like the bars to Become Non-solid so an avatar can walk through it. I will also use this in conjunction with an invisible Script so it basically makes the bars disappear...both visually and physically... How would i script that? Also if there is an easier way to do the following then let me know  Rise. EDIT: I also want the cage to close and become visible again, on my command... Also one last question..Can i make it do both actions on the one Command?
|
DoteDote Edison
Thinks Too Much
Join date: 6 Jun 2004
Posts: 790
|
10-22-2004 19:19
I can think of two ways, depending on the shape of the cage. If it's a box, you could simply hollow the box (you'll need roof/floor prims), and then script one of the cut params to cycle between 0 & 25%... or 100 & 75%, depending which cut direction you use. Once it 'opens', the script llSleeps for a second or two, then 'closes'... very simple. This would eliminate the need for an invisibility prim.
Otherwise, you need to build your cage with a separate prim for the 'door' only. In the door script, have it toggle the prim non-phantom to phantom (sleep) then back to non-phantom. At the same time, have it change the texture from bars to a "totallyclear"-type texture (full alpha transparency) and back again.
|