- Home /
Question by
Bruno-Fludzinski · Jun 21, 2012 at 09:49 PM ·
rotateshootturret
Mini Gun Turret
I'm making a turret that right now just rotates around constantly. I want this to happen but also when my "Player" gets within a good range I want the Mini Gun Turret to look at my player and shoot at it. Thanks in Advance
Comment
Best Answer
Answer by DSMK2 · Jun 21, 2012 at 10:40 PM
I think this is what you want to use: Transform.LookAt. Have the turret part "look" at the player when it comes into range using that function.
Your answer
![](https://koobas.hobune.stream/wayback/20220613073114im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Help With Turret 1 Answer
firing a shell from a tank turret 1 Answer
Turret + Cannon Mouse movement 1 Answer
Rotate Turret where touched (top down view) 1 Answer
turret shoot if in range 1 Answer