Weapon rigging question

Hey not sure how to do this properly and I cant find anything on how to make this work in unity and I am a new user. What I am trying to do is make a jousting simulator and I have a rigged knight model with lance. Now the lance is seperate from the knight inside Unity… So my problem is this- How would I go about making the lance move left or right in order to hit the enemy knight in the joust. My lance kind of goes all over the place when I attach the mouselook script and set the axes to MouseX.

I dont have any clue on what to do and I dont know if something like this has been covered before…if it has been please link me something and Ill gladly look at it. I know this probably is something easy to fix.

I think you should parent the lance to a bone of your rig. Probably in the hand. Then, you’ll have to animate the attack in your favorite CG program and bring it back to Unity and finally code some combat system script, like:

1-Hit a button to execute the animation attack.

2-Check to see if the enemy is close enough to player or if some collision shape attached to the weapon has collided with the enemy’s body. You can choose the method which works better in your case.

3-If some of the action listed above happened, then drop his life down a little.