Author Topic: I am in a pickle- Invisibility  (Read 3946 times)

How can I make invisibility for players using a weapon on yourself?

%client.player.hideNode(ALL);

Ok, thank you!

EDIT: Doesn't work =/
« Last Edit: February 06, 2008, 07:50:47 PM by Dr Bling »

Umm, it should if you're providing correct objects for %client / %player.

Is this right?
Code: [Select]
function ForceCloakImage::Onfire(%this,%obj,%slot){
%client.player.hideNode(ALL);
};

I think you need to package on damage.

Why do I need damage if I want it to work on the caster?

edit:
Code: [Select]
function ForceCloakImage::Onfire(%this,%obj,%slot){
%obj.player.hideNode(ALL);
};
I think.


origonal:O, I thought you were invasa-ing the person you hit, never mind :p
« Last Edit: February 06, 2008, 08:07:16 PM by laremere »

Code: [Select]
function forceCloakImage::onFire(%this,%obj,%slot)
{
%obj.hideNode(ALL);
};

I was close(r)

Just make sure it does screw up bricks with wrench events firing them.

Thank you Trader, and thank you Larmare, on a different note... Why would I shoot people to make them invisible  :cookieMonster:


"OH GOLLY GEE, WHERE THE SMIDGEN AM I?!"

Looks like you are in quite the pickle, you invisible man.

(I was talking to dr.bling in game and said I'd post code here...
Code: [Select]
function forceCloakImage::onFire(%this,%obj,%slot)
{
%obj.hideNode(ALL);
schedule($cloaktime,0,UnHideAllNodes,%Obj.Client);
};
I think that makes it return to normal after $cloaktime....

Don't unhide all nodes... that's not going to set it back to normal.

Unless your function does something else.