Blockland Forums > Modification Help

Checking body part

Pages: (1/2) > >>

Aware:

New problem

I am trying to make the image color change to the color of your Right Hand.

This is my code, It works but it sets to the color of the player looking.


--- Code: ---function TestgunImage::onMount(%this,%obj,%slot)
{
Parent::onMount(%this,%obj,%slot);

%client = %obj.client;
 
TestgunImage.colorShiftColor = %client.RHandColor;
}
--- End code ---


Katadeus:

I want to see what this is, sounds like it's going to be really really cool, just from this.

Aware:

Its going to be body armor, nothing that special, It just doesn't look right if the person has femchest.

All I need is just like a simple if statement

Aware:

I found it.

for future reference


--- Code: ---function HerbArmorMimage::onMount(%this, %obj, %slot, %client)
{
%client = %obj.client;
       if($Pref::Avatar::Chest == 1)
{
%client.player.unmountimage(2);
%client.player.mountimage(HerbArmorFimage, 2);
}
}
--- End code ---

It could probably be more complex, because it does not change if you change your chest, but who realy does that?

Slicksilver:

I should mention that will only work on the host.

$Pref::Avatar::Chest is a variable that is set to your avatar.

If you want to check to see if someone is wearing a femchest, you'll have to use if(%client.chest == 1)

Pages: (1/2) > >>

Go to full version