FiftyTifty Posted November 16, 2018 Share Posted November 16, 2018 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 More sharing options...
dubiousintent Posted November 16, 2018 Share Posted November 16, 2018 I believe what you want is the "GetActionRef" function. It may need to go into either the "Begin Result" or "End Result" block of the dialog; not clear to me.Note that dialog "inherits" it's implied speaker from it's topic. See also "Calling reference" page. -Dubious- Link to comment Share on other sites More sharing options...
FiftyTifty Posted November 17, 2018 Author Share Posted November 17, 2018 I believe what you want is the "GetActionRef" function. It may need to go into either the "Begin Result" or "End Result" block of the dialog; not clear to me.Note that dialog "inherits" it's implied speaker from it's topic. See also "Calling reference" page. -Dubious- Yup, it works. Thanks a bunch. Link to comment Share on other sites More sharing options...
dubiousintent Posted November 17, 2018 Share Posted November 17, 2018 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- Link to comment Share on other sites More sharing options...
FiftyTifty Posted November 17, 2018 Author Share Posted November 17, 2018 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 More sharing options...
Recommended Posts