- Home /
Question by
InfamousStudios · Jun 04, 2013 at 04:46 PM ·
physicsarrowbowfantasy
Click to Shoot
I have looked through the forums and answers, but could not find a satisfying answer. My game is a Third Person Fantasy game, but you can switch to a First Person camera to fire a bow and arrow. I need a script to fire an arrow where the hot spot of the cursor is on the screen ( When the user clicks the mouse). I am using Unity 4 for Mac OS X. Any help will be much appreciated!
Comment
Answer by cregox · Jun 04, 2013 at 04:53 PM
There are many ways to go about this, and it's going to depend on your game.
Try looking at some scripts here: http://wiki.unity3d.com/index.php/Scripts/Controllers#Character_Controller_Scripts
I personally would use LookAtMouse as an example of how you can gather the mouse position you want.
Your answer
![](https://koobas.hobune.stream/wayback/20220613103520im_/https://answers.unity.com/themes/thub/images/avi.jpg)