Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

A working invisibility script

Eggy Lippmann
Wiktator
Join date: 1 May 2003
Posts: 7,939
10-19-2004 06:22
LL should just add this as an official feature. It is so useful and opens so many creative possibilities.
Chris Knox
Member
Join date: 22 Apr 2004
Posts: 40
10-20-2004 19:14
for those people who are having problems use this script. It auto sets the scale to 0,0 and the offset.


CODE
//The Better Invisibility Script 
//from Chris Knox
refresh()
{
llSetTexture("38b86f85-2575-52a9-a531-23108d8da837", ALL_SIDES);
llOffsetTexture(0.468, 0, ALL_SIDES);
llScaleTexture(0, 0, ALL_SIDES);
llSleep(30);
llSetTexture("e97cf410-8e61-7005-ec06-629eba4cd1fb", ALL_SIDES);
llOffsetTexture(0.468, 0, ALL_SIDES);
llScaleTexture(0, 0, ALL_SIDES);
}

default
{
state_entry()
{
refresh();
llSetTimerEvent(5);
}

timer()
{
if ((integer)llGetWallclock() % 60 < 10)
{
refresh();
}
}
}
Tiger Crossing
The Prim Maker
Join date: 18 Aug 2003
Posts: 1,560
10-21-2004 10:30
Who has the old texture that will make all PRIMS vanish. The sort people put around ugly builds so they can't bee seen from your property.

(I think the old giant "Thinker" toilet build had one of these near it.)
_____________________
~ Tiger Crossing
~ (Nonsanity)
Beatfox Xevious
is THOUSANDS OF PEOPLE
Join date: 1 Jun 2004
Posts: 879
10-21-2004 12:29
Thanks, Chris. As I mentioned in another thread today, I hadn't originally intended the script to be used in prims that weren't already invisiprims. I just updated it to 1.1a so that it now sets the texture offset & scale, sets alpha to 1, and applies a bump-map upon init.

BTW Chris, you don't need to re-apply the texture offset & scale on every texture change. The previous values will persist. :)
_____________________
My Beatworks: Zephyr Chimes wind chimes, the KanaMaster Japanese kana tutor, and the FREE Invisibility Prim Public. Look for them at the Luskwood General Store in Lusk (144, 165).

"You have been frozen. You cannot move or chat. A pony will contact you via instant message (IM)."
- mysterious system message I received after making off with Pony Linden
Chris Knox
Member
Join date: 22 Apr 2004
Posts: 40
10-21-2004 15:09
From: Beatfox Xevious
BTW Chris, you don't need to re-apply the texture offset & scale on every texture change. The previous values will persist. :)


I know that. I just like to add thourough redundancy into my scripts.
Chris Knox
Member
Join date: 22 Apr 2004
Posts: 40
10-21-2004 18:12
From: Beatfox Xevious
BTW Chris, you don't need to re-apply the texture offset & scale on every texture change. The previous values will persist. :)


I know that. I just like my scripts to be thooroughly redundant.
Elle Pollack
Takes internets seriously
Join date: 12 Oct 2004
Posts: 796
11-26-2004 23:13
Sorry for the Necro-post...but I got the free invisibility prim, put it on, and I can still see myself. Know what the poblem might be?
Daniel Jacobs
Registered Dork
Join date: 3 Jun 2004
Posts: 4
Invisibility Script
11-28-2004 15:48
I also got the free invisibility script. It was too small to hide my legs and feet, so I resized it. Seems to work fine, except that ALL alpha-type objects behind the "invisibility bubble" are also invisible ... And, the floating text is a dead giveaway that there is an invisible person in the vicinity. I tried deleting the floating text from the Content box of the prim, but the text remains ...

Still, this is something to work with, and its uses are quite many, indeed. Thanks for this new toy! ;)
Elle Pollack
Takes internets seriously
Join date: 12 Oct 2004
Posts: 796
11-28-2004 23:29
Floating text has to be cleared manualy from a script, it won't go away just by disabling the script.

I believe the line of code you need is llSetText([]);
Jillian Callahan
Rotary-winged Neko Girl
Join date: 24 Jun 2004
Posts: 3,766
11-29-2004 02:12
From: Elle Pollack
llSetText([]);


CODE
default
{
state_entry()
{
llSetText("", <0,0,0>, 0);
}
}


:)
Princess Medici
sad panda
Join date: 1 Mar 2004
Posts: 416
11-29-2004 08:22
Actually, I think it should be llSetText("";); :)
_____________________
Please cease and desist from your derogatory use of Elmo. :D
Cross Lament
Loose-brained Vixen
Join date: 20 Mar 2004
Posts: 1,115
11-30-2004 11:34
From: Princess Medici
Actually, I think it should be llSetText("";); :)


That syntax probably won't work, Princess... it should immediately throw a "Function call mismatches type or number of arguments" error, since you're missing the colour and alpha parameters... :D
_____________________
- Making everyone's day just a little more surreal -

Teeple Linden: "OK, where did the tentacled thing go while I was playing with my face?"
Evil Fool
"==" != "="
Join date: 30 Jul 2004
Posts: 110
12-01-2004 11:58
lol

CODE
default
{
state_entry()
{
llSetText("", ZERO_VECTOR, 0.0);
}
}


that would probably be the most perfect way to call that function... even providing the float with, a float
Princess Medici
sad panda
Join date: 1 Mar 2004
Posts: 416
12-01-2004 15:08
Gimme a break dammit! I was close, just a bit short. :D
_____________________
Please cease and desist from your derogatory use of Elmo. :D
Beatfox Xevious
is THOUSANDS OF PEOPLE
Join date: 1 Jun 2004
Posts: 879
12-02-2004 14:34
From: Elle Pollack
Sorry for the Necro-post...but I got the free invisibility prim, put it on, and I can still see myself. Know what the poblem might be?

Are you sure you attached the invisiprim successfully? Sometimes I have problems attaching items, and I need to relog in order for them to attach. Also, what kind of av do you have? Is it a regular human av, or is it a "prim suit"?

From: Daniel Jacobs
I also got the free invisibility script. It was too small to hide my legs and feet, so I resized it. Seems to work fine, except that ALL alpha-type objects behind the "invisibility bubble" are also invisible ...

It will always hide alpha textures, as stated in the notecard instructions included with the invisiprim. There is no way to prevent this, unfortunately.
_____________________
My Beatworks: Zephyr Chimes wind chimes, the KanaMaster Japanese kana tutor, and the FREE Invisibility Prim Public. Look for them at the Luskwood General Store in Lusk (144, 165).

"You have been frozen. You cannot move or chat. A pony will contact you via instant message (IM)."
- mysterious system message I received after making off with Pony Linden
Ken Virgo
Fighting GURU
Join date: 19 Jun 2004
Posts: 62
the code for invisible is wrong
12-14-2004 07:36
that invisible code is for the dirt textture. Is there one for clear? :confused:
Elle Pollack
Takes internets seriously
Join date: 12 Oct 2004
Posts: 796
12-20-2004 06:56
From: Beatfox Xevious
Are you sure you attached the invisiprim successfully? Sometimes I have problems attaching items, and I need to relog in order for them to attach. Also, what kind of av do you have? Is it a regular human av, or is it a "prim suit"?


Regular human AV. And yes I'm sure it attaches.
Wiccan Sojourner
Bewitched Designer
Join date: 6 Aug 2004
Posts: 58
will excuse myself ahead of time
04-06-2005 09:16
(a total non scripting person butts in)

Hi! :D

Is this what peoplew were/are using to make prim shoes? I want to try to make some. But I know NOTHING about scripting...should I just forget this dream?

Wiccan Sojourner

Atlantis Rox!
Grazel Cosmo
Registered User
Join date: 12 Mar 2005
Posts: 28
06-13-2005 03:50
Anyone know where Beatfox' land went. The invisiprim is no longer at the location he specified.
Deklax Fairplay
Black Sun
Join date: 2 Jul 2004
Posts: 357
06-18-2005 10:17
I think your six months late :(

I'm not sure it works anymore.
_____________________
Better Dead Than Red!
Deklax Fairplay
Black Sun
Join date: 2 Jul 2004
Posts: 357
06-18-2005 10:33
Your about six months too late. ;)
_____________________
Better Dead Than Red!
Deklax Fairplay
Black Sun
Join date: 2 Jul 2004
Posts: 357
06-18-2005 10:38
yrdyhr
_____________________
Better Dead Than Red!
Burke Prefect
Cafe Owner, Superhero
Join date: 29 Oct 2004
Posts: 2,785
06-25-2005 18:12
llSetAlpha(0,ALL_SIDES);
That usually works well enough. Doesn't hide attachments, tho.
Mechanique Thirty
Pretty Spider
Join date: 15 Mar 2005
Posts: 60
06-28-2005 17:47
I just logged into SL (I've mostly left SL, but I drift through the boards now and then) and checked that the script still works - it does. I'd be pretty sad if it did die, because one of my avatars relies on it pretty heavily. (I'm the one on the left i the first image. *grin*)

Since people are saying Beatfox's land is gone, I've taken the liberty of posting the code. I hope xe doesn't mind!

Go to your inventory, create->new script. It'll be called "New Script" in your "Scripts" folder. Rename it to "Invisibility Prim Refresh v1.1a", double-click on it, and paste all this into it.

Then create a prim you want to be invisible, and drop the script onto it. Within thirty seconds (be patient!) it should become the Invisible Texture. I just tested from the copy in my inventory, and it works fine.

CODE
// Invisibility Prim Refresh v1.1a
// by Beatfox Xevious
// last updated Oct. 21, 2004

refresh()
{
llSetTexture("38b86f85-2575-52a9-a531-23108d8da837", ALL_SIDES);
llSleep(30);
llSetTexture("e97cf410-8e61-7005-ec06-629eba4cd1fb", ALL_SIDES);
}

default
{
state_entry()
{
llSetPrimitiveParams([PRIM_BUMP_SHINY, ALL_SIDES, PRIM_SHINY_NONE, PRIM_BUMP_BRIGHT]);
llOffsetTexture(0.468, 0.0, ALL_SIDES);
llScaleTexture(0.0, 0.0, ALL_SIDES);
llSetAlpha(1.0, ALL_SIDES);
llSetTimerEvent(5);
}

timer()
{
if ((integer)llGetWallclock() % 60 < 10)
{
refresh();
}
}
}
Beatfox Xevious
is THOUSANDS OF PEOPLE
Join date: 1 Jun 2004
Posts: 879
06-29-2005 20:59
It still should work. And check my sig. :)
_____________________
My Beatworks: Zephyr Chimes wind chimes, the KanaMaster Japanese kana tutor, and the FREE Invisibility Prim Public. Look for them at the Luskwood General Store in Lusk (144, 165).

"You have been frozen. You cannot move or chat. A pony will contact you via instant message (IM)."
- mysterious system message I received after making off with Pony Linden
1 2 3