Get Actor from ActorBase? For Mod Realistic Body System

Post » Mon Jan 21, 2013 7:05 pm

I want to to reset all npcs that the Formlist RBSFemales contain at gamestart.
The Formlist contains the FormIDs of the RBS females.

The Actor always is "none". its driving me crazy ;)

Scriptname RBSCorrectNPCsInit extends QuestFormList Property RBSFemales AutoEvent OnInit()    int i = 0Utility.Wait(5.0)Utility.SetINIBool("bUseFaceGenPreprocessedHeads:General", false)    while i <= RBSFemales.GetSize()  ActorBase pActorBase = RBSFemales.getat(i) as ActorBase  int test = pActorBase.GetFormID()  actor f = Game.GetForm(test) as ACTOR  f.reset()	    f.Enable()	    f.Resurrect()  f.QueueNiNodeUpdate()  i += 1  endwhileDebug.Notification("RBS updated")EndEvent

What does i have to do to get the actors out of the formlist and reset them?
User avatar
Facebook me
 
Posts: 3442
Joined: Wed Nov 08, 2006 8:05 am

Return to V - Skyrim