Hello my question is how to code so that you can equip your heroe. What i want to do it have the heroe do the same simple like swing the sword animation but i want to be able to equip him with different weapons but still have him do the same animation. Can anyone help me on how to do this. Thanks in advance!
basically you need a character animated model (3d artists task) with a empty pivot to know where weapons should be attached and set of weapons with a same point of attaching (holding by hand point). now simply on equipping instantiate weapon model on empty pivot position and attach it to player model so it will look like player holds a weapon. now run animations and look what happens 8)