Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Keeping me from bouncing away.

Exile Loudon
Aspiring Scripter
Join date: 10 Dec 2005
Posts: 122
02-27-2006 02:55
Okay, I'm making a shield that has an outer layer in which I placed a bounce script. When I rez the shield around me, no matter what I touch, i bounce away. But now, since that didn't work, I made the outside layer a thin invisible layer that is not linked to it, but is rezzed along with the shield when the command is said. Unluckily, I get stuck inside the shield, and I can't move out of my "falling upwards" position. How can I write a script so the outside layer does nothing to affect me?
Keknehv Psaltery
Hacker
Join date: 11 Apr 2005
Posts: 1,185
02-28-2006 15:36
if !(llDetectedKey(0)==llGetOwner())

That line will execute the following statements only if the detected key is not the owner. Put this somewhere in the collision() event...