I am in a pickle- Invisibility

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

I realized I left out even more copied and pasted code.  Just download cooly foolies commands, and use invisable and restore :P

I tried doing this, but to no avail

Code: [Select]
function forceCloakImage::onFire(%this,%obj,%slot)
{
   %obj.hideNode(ALL);
                schedule($cloaktime,0,"$clearchange",%obj.client);
}

$cloaktime = 10000;
$clearchange= %Minigame = %Client.minigame;
%Player = %Client.player;
%Player.playthread(0,root);
if(%Minigame>0){%Player.setDataBlock(%Minigame.playerdatablock.getName());}
else{%Player.setDataBlock("PlayerStandardArmor");}
%Player.setScale("1 1 1");
%Player.setShapeName(%Client.name);
%Client.headcolor = %Client.headColor2;
%Client.hatColor = %Client.hatColor2;
%Client.accentColor = %Client.accentColor2;
%Client.chestColor = %Client.chestColor2;
%Client.hipColor = %Client.hipColor2;
%Client.larmColor = %Client.larmColor2;
%Client.lhandColor = %Client.lhandColor2;
%Client.llegColor = %Client.llegColor2;
%Client.rarmColor = %Client.rarmColor2;
%Client.rhandColor = %Client.rhandColor2;
%Client.rlegColor = %Client.rlegColor2;
ClearChange(%Client);
ClearAllPlayerNodes(%Player);
UnHideAllNodes(%Client);
« Last Edit: February 07, 2008, 07:29:07 PM by Dr Bling »


Dr Bling, you greatly underestimate the power of the console to solve problems.

That would not work. You'd need to do this:

Quote
function forceCloakImage::onFire(%this,%obj,%slot)
{
   %obj.hideNode(ALL);
 Â               schedule($cloaktime,0,"applyCharacterPrefs",%obj.client);
                %obj.schedule($cloaktime,"unhideNode",headskin);
}

And you'll need to do:

Quote
$cloaktime = 10000;
somewhere in the file, too. Outside of any functions. 10000 will make them cloak for 10 seconds, by the way.

That will work now.

Hm this would be a fine addition to the katana. The dash would be a sort of flash step, you move so fast you're invisible for a second. I tried but it destroyed the secondary function. Where would i go about adding it?

I saw the console Trader, didn't think to use it. Thank you Ephi and Trader and everyone for support. I am in a great mood, I ran my first 2 mile in soccer conditioning and I stayed with everyone else, so I am gonna try and get alot of force powers done today! :cookie:

Hm this would be a fine addition to the katana. The dash would be a sort of flash step, you move so fast you're invisible for a second. I tried but it destroyed the secondary function. Where would i go about adding it?
Do you leech onto everything?

Please don't be mean to him, I actually like his idea, and it seems he tried it himself, so next time shut the panda up and think before you put someone down.  :cookieMonster: