Hello! I’ve been trying to create my own targeting system for a while now, but I’m having a tad bit of trouble creating script. I don’t have a script to post now since I’m in school, but I’ll post the scripts I have already in the later hours today, so I’ll describe it the best way I can.
So I have a script attached to a GUITexture I believe. The crosshair replaces the mouse, and moves around. BTW, my camera has the mouse orbit script. What I needed, is for when the crosshair(mouse) is over a gameobject with a tag(“Enemy”) and is within a certain distance of the Enemy, the Player(also tagged “Player”, which BTW is a Platform Controller), must look at the enemy. I know that the LookAt may not work quite well with a Platform Controller, but it’ll work for another idea I have. This has to work for all enemies in the world.
If you could help me out a bit, that be GREAT!