luffyboy Posted February 8, 2018 Posted February 8, 2018 Hi there need some help with some scripting What i am hoping to do is create a script that gets the bodymorph values from "actor source" and overwrite them on "actor target"I am using racemenumorphsuunp in conjunction with bodygen (from racemenu) to randomly allocate morphs to all npcs.Right now i am having some issues between bodygen and paradise halls which i think i can use a script from racemenumorphsuunp provided by bodyslide to fix.The problem is that paradise hall creates a clone of the npc you capture and changes breasts nodes during the cloning process thus the npc you capture can have a very different body before and after you finish capturing them.Switching off the script that randomizes the breasts nodes does not prevent the body from changing either as it would seem bodygen reapplies the node randomization to the new npc clone (as it probably seen it as a seperate entity i figure?)Hence i was wondering if it was possible to hijack the breast changing the script to instead get ALL the bodymorph values of the original npc and apply it to the new clone npc?Looking at the racemenumorphsuunp source code i see "getfullbodymorph" and "addfullbodymorph" functions. I was wondering if those functions can be used for my goal?Below is the source script from paradise hall for reference. 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 attach are the source code for paradise hall script for nodes and racemenumorphsuunp source code Would really appreciate help on this! RPNodes.psc RaceMenuMorphsUUNP.psc
Recommended Posts
Archived
This topic is now archived and is closed to further replies.