Jump to content

IsFirstPerson no longer works as a VariableBool?


Recommended Posts

  • 2 months later...

I noticed this recently and wondering if there's a solution yet. or is there really a difference between

Game.GetPlayer().GetAnimationVariableBool( "IsFirstPerson" ) 

and

Game.GetPlayer().GetAnimationVariableBool( "IsFirstPerson" ) == True 

?

 

cause there really shouldn't be. :)

last time the former was working for me was with this april fools mod: https://www.nexusmods.com/fallout4/mods/30880
so about two months before OP started this topic it was working fine with the latest version of the game. I am always using the latest version and I can confirm it is not working now.

Link to comment
Share on other sites

  • 6 months later...

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!

 

I'm doing well! hope you are also

 

Just a heads up if you ever see this, they broke it again. After riding in a vertibird it pretty much kills GetAnimationVariableBool("IsFirstPerson") ==true

 

in fact, even if you set it back SetAnimationVariableBool("IsFirstPerson", True) it just stops working in third person instead haha. They flat out destroyed whatever was going on under the hood to check for those variables on the perspective change. I have pretty much thrown my hands up and said f*** it with this game lol, they broke most of my mods with updates and I have no desire to fix them anymore.

 

Anyway hope all is well :smile:

Edited by FLipdeezy
Link to comment
Share on other sites

An alternative way to check for first person camera would be using a magic effect to change a script property or a global variable using the condition IsPC1stPerson.

Link to comment
Share on other sites

  • 3 weeks later...

For those using F4SE you can now call Game.GetCameraState() to get the camera state with the latest F4SE release.

For those not on F4SE you can try the following as a workaround:

Game.GetPlayer().HasDetectionLOS(Game.GetPlayer())

In first person the camera has no line-of-sight to the player and in third person the opposite is true. I used this a long, long time ago, not sure if it still works in the current version.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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