Jump to content

Using ReferenceAlias with GetFormFromFile - is it even possible?


dweezer

Recommended Posts

Posted

Ok, I'm stumped and I can't find an existing topic with this exact issue, so I'm posting here.

 

I'm trying to call WeightMorph's ChangeWeight function from another mod as to manipulate it directly. As per the code below, I can set the quest externally, but I'm not having luck with getting the ReferenceAlias to fill correctly. Suggestions?

ReferenceAlias property WM Auto ; persisting so I can call it outside of the init function

Event OnInit()
	Quest WeightMorphQuest = Game.GetFormFromFile(0x001883,"WeightMorphs.esp") as Quest
	WM = WeightMorphQuest.WeightMorphs as ReferenceAlias
EndEvent
Posted

Once you get the quest you can call getAlias() to get the aliases of the quest.

 

 

ReferenceAlias ref = myQuest.getAlias("myAlias01") as ReferenceAlias

 

Archived

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

  • Recently Browsing   0 members

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