Realistic fps prefab gets stuck when jumping by object
![realistic fps prefab gets stuck when jumping by object realistic fps prefab gets stuck when jumping by object](https://cdn.akamai.steamstatic.com/steam/apps/1797260/ss_e422d4ac188e69aacadf75bcf2b486d91cef1b79.1920x1080.jpg)
Sorry if this has become a bit complicated. That should make sure that the models used in the game are linked to their proper animations. You can also expand the MP5_Anim object in the project window in !!!Realistic FPS Prefab Files/Models/Weapons/ and drag the animations from there (the big icons with an arrow on them) over the small icons with the same name (Fire, Reload, and Ready) in the inspector tab in the animation component->animations list of the MP5_Anim object. Then, in the Hierarchy window, could you select !!!FPS Main/FPS Weapons/MP5/MP5_Anim and on the inspector tab in the animations component of MP5_Anim, expand the Animations arrow? The size should say 3 and the animations below it should be Fire, Reload, and Ready. There are two things to check:įirst, in the project window, could you please click on the AK47_Anim and MP5_Anim models in !!!Realistic FPS Prefab Files/Models/Weapons/ and then check that in the inspector that the MP5_Anim Import Settings->Rig->Animation Type is set to Legacy? You can undo the changes you made to WeaponBehavior.cs (delete the comment dashes). WeaponBehavior:FixedUpdate() (at Assets/!Realistic FPS Prefab Files/Scripts/Weapons/WeaponBehavior.cs:343)īy the way, hadn't got too much time so I didn't tried the second example to fix the weapons (one where I have to recreate the weapons).Ĭlick to expand.Looks like the problem is with the animations. WeaponBehavior+c_Iterator9.MoveNext () (at Assets/!Realistic FPS Prefab Files/Scripts/Weapons/WeaponBehavior.cs:860) WeaponBehavior.FixedUpdate () (at Assets/!Realistic FPS Prefab Files/Scripts/Weapons/WeaponBehavior.cs:347) It says some errors when I reload the guns: WeaponBehavior:Update() (at Assets/!Realistic FPS Prefab Files/Scripts/Weapons/WeaponBehavior.cs:559) WeaponBehavior:Fire() (at Assets/!Realistic FPS Prefab Files/Scripts/Weapons/WeaponBehavior.cs:658) UnityEngine.MonoBehaviour:StartCoroutine(String) UnityEngine.Animation:CrossFade(String, Single, PlayMode)Ĭ_Iterator8:MoveNext() (at Assets/!Realistic FPS Prefab Files/Scripts/Weapons/WeaponBehavior.cs:695) Please attach an animation clip with the name 'Fire' or call this function only for existing animations. The animation state Fire could not be played because it couldn't be found! UnityEngine.GameObject:SetActive(Boolean)Ĭ_Iterator6:MoveNext() (at Assets/!Realistic FPS Prefab Files/Scripts/Weapons/PlayerWeapons.cs:259) WeaponBehavior.OnEnable () (at Assets/!Realistic FPS Prefab Files/Scripts/Weapons/WeaponBehavior.cs:231) WeaponBehavior.Start () (at Assets/!Realistic FPS Prefab Files/Scripts/Weapons/WeaponBehavior.cs:187)