Changing perspective to first person if sniper rifle is aimed in third person. ShootableWeapon.cs question.

finaratic

Member
So i added switchToFP bool in ShootableWeapon.cs and Inspector scripts and set it to true in inspector on sniper rifle, i modified on Aim function in same script to switch to first person if switchToFp bool on this weapon true. Switch works, BUT it switches on all other weapons too, in inspector this bool is false everywhere else than sniper rifle, only there its true. But during debug log its always true if it true on ANY of shootable weapons scripts (For example: its true only on sniper rifle, but it switches perspectives on all weapons, if everywhere false it wont switch). How can it be possible?
 
Are you running version 3 of the character controller? Version 2 is no longer supported and ShootableWeapon no longer exists.
 
Top