Author Topic: Checking body part  (Read 569 times)

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: [Select]
function TestgunImage::onMount(%this,%obj,%slot)
{
Parent::onMount(%this,%obj,%slot);

%client = %obj.client;
 
TestgunImage.colorShiftColor = %client.RHandColor;
}
« Last Edit: February 20, 2012, 10:05:21 AM by Aware »

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

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
« Last Edit: February 19, 2012, 03:44:01 PM by Aware »

I found it.

for future reference

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

It could probably be more complex, because it does not change if you change your chest, but who realy does that?
« Last Edit: February 19, 2012, 06:17:17 PM by Aware »

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)

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)

Thank you.


You can't just change datablock values and expect it to only happen for one player.

You can't do what you're trying to do, sadly.

You can't just change datablock values and expect it to only happen for one player.

You can't do what you're trying to do, sadly.

Damn.