Talk:SetHairColor - ActorBase
I've spent a couple hours trying to get this to work and am having difficulty. I've added the line "bUseFaceGenPreprocessedHeads=true" to both skyrim.ini and skyrimprefs.ini under the [general] section and my code reads as follows:
function aksingletrait(actor akbase, actor aknew)
ActorBase akbasebase = akbase.GetActorBase()
ActorBase aknewbase = aknew.GetActorBase()
aknewbase.sethaircolor(akbasebase.gethaircolor())
string facegen = "bUseFaceGenPreprocessedHeads:General"
debug.Notification("1" + utility.getinibool(facegen))
Utility.SetINIBool(facegen, false)
aknew.QueueNiNodeUpdate()
debug.Notification("2" + utility.getinibool(facegen))
Utility.SetINIBool(facegen, true)
debug.Notification("3" + utility.getinibool(facegen))
debug.Notification("Single Trait Tested")
EndFunction
Akbase is the caster and AKnew is the target. The function runs successfully and works with other changes, but no hair color is changed.
1) Which ini should have the ini line added to it?
2) When run, the debug reads "1 false, 2 false, 3 True" No hair color change.
3) Inverting the bools (so the first set ini sets facegen to true, and the second sets it to false, returns "1 False, 2 True, 3 False". Still no color change.
4) This leads me to beleive I'm not adding the line to the proper ini file, or not adding it correctly. Can anyone help me?
--Iceburg333 (talk) 2013-04-26T17:15:21 (EDT)