How to not allow the player to change perspectives while reloading?

Hi guys!

Is there a way to stop players from changing perspectives while they are doing an animation, like when they are reloading?

Because I’ve set up a FPS/TPS perspective system using V key in my game. So the player can switch perspective whenever they want, but, I want to stop them from changing perspectives when they are reloading, due to the FPS and TPS animations being different and due to a visual bug which is tied to double mag reload.


Stick another branch right after TogglePerspective that checks a new variable, IsReloading.

Hi! Thanks for your reply

I can’t wrap my head around this, I don’t know how to connect each other… Sorry if this is a dummie question, but i’m a newbie and don’t really get this

This is what I kept trying, I don’t know how to connect them

in your first screenshot you have TogglePerspective → (IainFP)branch ->-> Set Set
in my sugestion TogglePerspective ->(isRealoding)branch ->(IainFP)branch ->-> Set Set.
That way if IsRealoding is false, all your old code happens, and if IsRealoding is true nothing connects to that branch and nothing happens. Its up to you to appropriately set IsReloading elsewhere in the code so its only true while the player is realoading.