Jump to content

Is it possible to force the game to 3rd person/ 1st person when equipping an specific weapon?


andresfe4671

Recommended Posts

Is no secret that some weapon mods out there work better on 3rd/1st person, or have some cool animations that you can only see in 1st person stuff like that, i was wondering if you can force the view for a specific weapon through scripts or something on weapon equip. thanks for any replies!

Edited by andresfe4671
Link to comment
Share on other sites

I think you could.

 

when the item is equipped, create an InputEnableLayer, where you disable abCamSwitch. Then, call Game.forceFirstPerson or .forceThirdPerson. You could also save the previous state, you can get it like this:

 

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

 

On unequip, delete that enablelayer, and potentially restore whatever the player had before.

 

I think it would be the best to do this within a magic effect, which you put onto your weapon through an enchantment.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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