Jump to content

IsFirstPerson no longer works as a VariableBool?


Recommended Posts

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

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

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

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

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

  • Recently Browsing   0 members

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