Jump to content

Forcing 3rd-person mode


bipesh

Recommended Posts

I'm trying to figure out if there's a way, via script, to force the player to go into flycam mode so an idle animation can be viewed. What I want to do is actually almost identical to what happens when the player is cannibalizing a corpse (player controls disabled, camera goes to flycam view, "cannibalize" idle animation is played, original camera view and controls are restored), but the cannibal functions are in native code and not in the geck scripting language. Is such a feat possible for a scriptwriter? Edited by bipesh
Link to comment
Share on other sites

I think you need NVSE for that. It has the TapControl function that can be used to simulate the player hitting the POV key. You'll probably have to DisablePlayerControls to keep them from moving around while allowing POV and Look Around.

 

If you use DisablePlayerControls to disable POV, it will force 1st person. So you'll probably end up leaving POV enabled and checking every frame to see if the player entered 1st person while the anim is playing and force them back into 3rd person.

 

I would also check whether the PC was in 1st or 3rd to begin with (IsPC1stPerson) so that it can be restored when the anim finishes.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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