Jump to content

[LE] NiOverride and ArmorAddon Nodes [help]


Thomas123321

Recommended Posts

Dear modders of Skyrim,

 

Currently I am working on a little project ofr myself to make clothes look wet when it rains. This is largly inspired by WetFunction Redux which does it for the body.

At the moment I am still looking into changing the specular and the gloss of armors. I've got it working for the player skin, but it does not want to work for the armor.

Function SetStrengthForLayerArmor(Actor target, Armor arm, bool isFemale, string node, int layer, float strength)
    int max = arm.GetNumArmorAddons()
    int i = 0
    While i < max
        ArmorAddon addon = arm.GetNthArmorAddon(i)    
        NiOverride.AddOverrideFloat(target, isFemale, arm, addon, node, layer, -1, strength, false)
        i+=1
    EndWhile
EndFunction 

So I want to use NiOverride to override the gloss and specular value of the armor addon. To this method I will provide the player as target, the Armor in the current armorslot, whether the player is female, a node, the number of the layer (2 and 3) and the strength. This method looks up all armoraddons and changes the value on that armor.

 

The problem I have is that I have no idea what the enter as node. This is a string value and the NiOverride api provides:

Function AddOverrideFloat(ObjectReference ref, bool isFemale, Armor arm, ArmorAddon addon, string node, int key, int index, float value, bool persist) native global 

but I could not find documentation for what the string node should be. I already know that index has no effect if the key is not 9, but I hace no idea what node should be. My script worked for the body texture because it does not require a node.

 

Concrete my questions are:

  • What should I enter as node in the NiOverride function?
  • Is this even the function to use for this case?
  • Any other suggestions you may have.
  • A link to NiOverride could be usefull and then I can look for it myself.

Thank you in advance.

Edited by Thomas123321
Link to comment
Share on other sites

  • Recently Browsing   0 members

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