My Mackenzie
Certified ratnut
Join date: 6 Aug 2004
Posts: 86
|
02-26-2005 09:13
Hello
Im trying to minimize listens in a project of mine, so im looking for a script that will turn things invisible on touch instead of voice command.
I have looked and looked all over the scripting forums, perhaps its my newbieness at scripting but i cant seem to find anything like what im looking for.
Would very much appreciate it if someone could help me out with this
Regards My
_____________________
You cannot stop the birds of sorrow flying over your head, but you can prevent them from nesting in your hair.
Chinese saying.
Atlantic Dreams Designs (ADD's) in Grindlewald (229, 195)
|
Masakazu Kojima
ケロ
Join date: 23 Apr 2004
Posts: 232
|
02-26-2005 09:48
Like this? integer OWNER_ONLY = TRUE; // if TRUE only owner can touch
integer visible = 1;
default { touch_start(integer num) { if (OWNER_ONLY && llDetectedKey(0) != llGetOwner()) return; visible = !visible; // !1 = 0, !0 = 1 llSetAlpha((float)visible, ALL_SIDES); } }
|
My Mackenzie
Certified ratnut
Join date: 6 Aug 2004
Posts: 86
|
02-26-2005 09:55
That looks like what im looking for, thx Ill have to try it out when i get inworld tonight
_____________________
You cannot stop the birds of sorrow flying over your head, but you can prevent them from nesting in your hair.
Chinese saying.
Atlantic Dreams Designs (ADD's) in Grindlewald (229, 195)
|
Jack Lambert
Registered User
Join date: 4 Jun 2004
Posts: 265
|
02-26-2005 11:54
From: someone visible = !visible; // !1 = 0, !0 = 1 Wow that's a pretty nifty trick for setting booleans. Why didn't I think of it? --Jack Lambert
|