- Home /
Question by
killerstud3 · Nov 20, 2011 at 04:52 AM ·
meleeneedwith
I need help scripting a melee attack
i am trying to make a pickaxe swing and hit a character right now i am just trying to make it swing nothing with health yet this is my script so far
function Update () { if(Input.GetButtonDown("Fire2")) { animation.Play("hitting"); } }
i have the script attached to the pickaxe which is a child object of the main Character can you please help?
Comment
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
The name 'Joystick' does not denote a valid type ('not found') 2 Answers
Help with Ragdoll 2 Answers
camera focus on sphere 1 Answer