Hoamaii Posted May 24, 2018 Share Posted May 24, 2018 Strange thing. I created a mod a few months ago where "Game.getPlayer().GetAnimationVariableBool("IsFirstPerson")" worked flawlessly in any circomstances and it suddenly stopped working. I debugged it, that script function no longer detects when my PC's in first person no matter what I try. Only the condition "isPC1stPerson" detects it now. I had to create a spell to replace that function. Is it only me? How can a function (or a variable) stop working all of a sudden? Never happened to me before in years of modding Beth's games... Unless at some point the string was changed to another expression and I missed that? Link to comment Share on other sites More sharing options...
Evangela Posted May 24, 2018 Share Posted May 24, 2018 Try GetAnimationVariableInt("i1rstPerson"). Link to comment Share on other sites More sharing options...
Hoamaii Posted May 24, 2018 Author Share Posted May 24, 2018 God, an Int is what I was using (pretty much like in Skyrim) before I had to move to a Bool because that stopped working too - I didn't even bother to try that again!.. Thanks for reminding me! You sure about "i1rstPerson"? Isn't it "i1stPerson" instead, without the "r" in "1rst"? Link to comment Share on other sites More sharing options...
Evangela Posted May 24, 2018 Share Posted May 24, 2018 Oops, sorry about that, yeah it's 1st. Link to comment Share on other sites More sharing options...
shavkacagarikia Posted May 24, 2018 Share Posted May 24, 2018 I noticed that bug as well, not sure what causes it. Maybe after player switches graphs (enters/leaves power armor) Link to comment Share on other sites More sharing options...
Hoamaii Posted May 24, 2018 Author Share Posted May 24, 2018 Yep, well, nope, just tested it, GetAnimationVariableInt("i1stPerson") doesn't work either for me. Back to using my spell then!.. The way I tested it, I don't think my PC was switching graphs, he was standing, in First Person, no weapon drawn, no sneak, no PA, nothing - I just created an activator for debug purposes and had my PC activate it, running "If Game.GetPlayer().GetAnimationVariableBool("isFirstPerson")" [which worked fine till recently] and "If Game.getPlayer().GetAnimationVariableInt("i1stPerson") [which had be switch to a bool a few months ago when the Int stopped returning properly]. In both cases, it failed to detect First Person. No idea why. Link to comment Share on other sites More sharing options...
Evangela Posted May 24, 2018 Share Posted May 24, 2018 (edited) They probably compiled it out of the executable or something. There's been a few updates since in that few months ago. Edited May 24, 2018 by Rasikko Link to comment Share on other sites More sharing options...
Hoamaii Posted May 24, 2018 Author Share Posted May 24, 2018 Yeah, you're probably right - I've been very careful not to update my PC version since that Creation Club invention (no sweat, I do use a very legit version!.. several in facts ;)) so I'm still running this one on 1.9.4 which is also a drag because it makes it harder to update my F4SE version or other stuff, or even to just verify cache. I will update once I've finished the few mods I have in progress but the mere thought of having to clean up my game HD after that makes me grind my teeth... It's bad enough that I can't do anything about CC on my console versions of the game... Made me realize that the last time I used that function in another mod was before the CC!.. I should upload my mods at some point rather than keep polishing them and inventing new ones... ;) Link to comment Share on other sites More sharing options...
Flip777 Posted May 27, 2018 Share Posted May 27, 2018 Hi @Hoamii this still seems to work for me if PlayerRef.GetAnimationVariableBool("IsFirstPerson") == TrueI just checked. I have the latest version of the .exe also Link to comment Share on other sites More sharing options...
Hoamaii Posted May 27, 2018 Author Share Posted May 27, 2018 Hey Flipdeezy, how are you? Damn, silly of me, I didn't even try that - stupidly confident that a bool would return true or false without stating it... :geek: (Skyrim habits are hard to shake... :rolleyes:) I'm not at my modding rig right now, but I'll try that first chance! Thanks! Link to comment Share on other sites More sharing options...
Recommended Posts