i am trying to make recoil for my game, i have the basics down, and it works with mine and the tutorial i am watching, but i got to the part where you can make different recoil for different weapons, and im pretty sure he is trying to say to find the active child with the 'Gun' component, and i dont know how to do this? any ideas?
#Gun recoil
1 messages · Page 1 of 1 (latest)
I'm not sure if i understood your problem, but the method GetComponentInChildren, from Unity, can be used to get an active component on the childs of an object. Have i answered your question?
yes but i figured it out by using other scripts to get the gun that is activated