Aller au contenu

Photo

How to apply wings/tails in game?


  • Veuillez vous connecter pour répondre
1 réponse à ce sujet

#1
Clangeddin86

Clangeddin86
  • Members
  • 220 messages

Another one of those threads... I've seen this done in several PWs too, so what's the trick? :P



#2
comeandsee

comeandsee
  • Members
  • 32 messages

It's done via a script called nwnx_objectattributes_include

 

void main(string sTarget = "")
{
    object oPC = (GetPCSpeaker()==OBJECT_INVALID?OBJECT_SELF:GetPCSpeaker());

    // Set the correct tail based on gender
    int nTail;
    if (GetGender(oPC) == GENDER_MALE) {
        nTail=8;
    } else {
        nTail=9;
    }
    
    // Cure albino tail
    XPObjectAttributesFixTailTint(oPC);

    // Create tail on character
    XPObjectAttributesSetTailVariation(oPC, nTail);

    // Zone the characer for the tail to appear.    

}