Blockland Forums > Modification Help
Node coloring
Greek2me:
--- Quote from: pecon98 on September 14, 2011, 08:01:30 PM ---Well, I used that but there are no places to add the decals/face and he still appears all white.
--- End quote ---
Add the decals to the end of applyBodyColors. And for him being all white, I'm not really sure. I thought 0 0 0 was black in RGB.
pecon98:
I'll try 256 later.
EDIT: Didn't work, everything is still white. However everything else about the AI seems to work fine, just like when I started.
pecon98:
Can anyone help with the actual coloring?
Demian:
--- Quote from: Demian on September 14, 2011, 01:01:11 PM ---That color code makes no sense. Try either "0 0 0" or "0 0 0 1".
--- End quote ---
That is black.
Greek2me:
Oops! I've got it now. Change GameConnection::applyBodyParts to:
--- Code: ---package blah
{
function AiConnection::applyBodyColors(%this)
{
parent::applyBodyColors(%this);
if(!isObject(%this.player))
return;
if(%this.player.getDatablock().getName() !$= "KingZombie")
return;
%this.player.setNodeColor("ALL","0 0 0 1");
}
};
activatePackage(blah);
--- End code ---