Jump to content

[LE] Check for third or first person


Tiziano74

Recommended Posts

Hi

I'm creating some animation in my house and I'm looking for a way to make a script recognize whether the player's view is first or third person.
What I would like to do is record the state of the view, if it's in first or third person, before the animation, force the third person view, and after the animation, if the player was playing in first person bring the game back to first person view.
Does anyone know of a command or script that checks the state of the player's view, if the game is in first or third person?
Thanks in advance to those who will answer!

Link to comment
Share on other sites

Hey yeah, I do something similar in one of my mods. You can do something like this:

    Bool FirstPerson = PlayerRef.GetAnimationVariableBool("IsFirstPerson") 
    If FirstPerson
        Game.ForceThirdPerson()
    Endif 
    
    ;play animation 
    
    If FirstPerson
        Game.ForceFirstPerson()
    Endif 
Link to comment
Share on other sites

  • Recently Browsing   0 members

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