Jump to content

Aplying face overlays


Pamatronic

Recommended Posts

Posted

So, I´ve been trying to change an actors face color with nioverride.

To do this, I´ve come up with this snippet
 

NiOverride.AddNodeOverrideString(target, fem,  partNameHEad, 9, 0, textureHeadCurrent, false)
NiOverride.AddNodeOverrideint(target, fem,  partNameHEad, 7, -1, 0x3c0b00, false)

 

partNameHead is the headnode name aquired by using this function:

string Function GetHeadNode(Actor aAct)
  ActorBase ab = aAct.GetActorBase()
  int i = ab.GetNumHeadParts()
  string headNode
  While i > 0
    i -= 1
    headNode = ab.GetNthHeadPart(i).GetName()
    If StringUtil.Find(headNode, "Head") >= 0
      return headNode
    EndIf
  endWhile
  return ""
EndFunction

 

But now I have the following problem:
While this piece of code works on the player and the majority of NPC´s, there are a few select npcs where it just wont work on.
These for example

Or this one

 

I cant apply overrides, nor can I get their actual textures by using "NiOverride.GetNodePropertyString(act, false, partNameHead, 9, 0)"
 

Any Idea on what I might be overlooking?

Posted
33 minutes ago, Tlam99 said:

getleveledactorbase()

Nope, no difference.

 

I should add that the function for getting the headpart is working fine and will get the correct node, even if the overlay isn't working.

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...