Jump to content

Requesting help in editing script (nioverride)


luffyboy

Recommended Posts

Hi, im trying to change this script from

applying random nioverride data to the target npc

to instead get nioverride data from the source npc and copy it onto the target npc.

 

Scriptname RPNodes Hidden

import NiOverride

bool Function transferNode(Actor source, Actor target) Global
    float mag = GetNodeTransformScale(source, false, true, "NPC L Breast", "RandomPatches")
    
    If mag != 0
            AddNodeTransformScale(target, false, true, "NPC L Breast", "RandomPatches", mag)
        AddNodeTransformScale(target, false, true, "NPC R Breast", "RandomPatches", mag)

        UpdateNodeTransform(target, false, true, "NPC L Breast")
        UpdateNodeTransform(target, false, true, "NPC R Breast")
        return true
    Else
        return false
    EndIf
EndFunction

Would be really appreciative if someone can let me know how it should be done? (have very basic scripting ability)

Link to comment

Archived

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

  • Recently Browsing   0 members

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

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more information, see our Privacy Policy & Terms of Use