I've been experimenting a lot lately with the SetColor() and SetCreatureBodyPart() functions. I'd like to know if there's a way to define the PC's colors and apply them to an NPC, making family members for instance. Unfortunately, when I try to define variables, I get a ERROR: MISMATCHED TYPES error message.
Is there a better way? Or is the GetColor function patently useless to builders?
Here's what I have so far.
//Mom! Dad!
void main()
{
object oPC = GetFirstPC();
object oSkin = GetColor(oPC, COLOR_CHANNEL_SKIN);
object oHair = GetColor(oPC, COLOR_CHANNEL_HAIR);
object oTat1 = GetColor(oPC, COLOR_CHANNEL_TATTOO_1);
object oTat2 = GetColor(oPC, COLOR_CHANNEL_TATTOO_2);
SetColor(OBJECT_SELF, COLOR_CHANNEL_SKIN, oSkin);
SetColor(OBJECT_SELF, COLOR_CHANNEL_HAIR, oHair);
SetColor(OBJECT_SELF, COLOR_CHANNEL_TATTOO_1, oTat1);
SetColor(OBJECT_SELF, COLOR_CHANNEL_TATTOO_2, oTat2);
}
Modifié par Snarkblat, 24 juin 2011 - 01:31 .