Jump to content

How to get speaking NPC from dialogue script?


FiftyTifty

Recommended Posts

For the life of me, I couldn't find any mention of this.

 

I've an NPC that is talking to the player, and I want to get that NPC as a reference, so I can call a UDF. In Skyrim, you would use the akspeaker variable, but there's nothing on the GECK wikis that talk about it.

 

So how do I get the speaker as a reference?

Link to comment
Share on other sites

Great to hear. Just so I can put that into a Tip for others, where did you end up needing to place that function to get the correct value? Any problems getting to work?

 

-Dubious-

 

I just placed it in the Result Script (End) part of the dialogue topic. I chucked it into a UDF command, that takes an integer as the first argument, and a ref as the second argument.

 

 

call AAAFyTySetActivePackage 2 GetActionRef

 

There were no errors or anything, it just works.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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