Make enemy use raycast.

I need to make an enemy. That can walk around. And use a raycast to see the main character and if it is on it for a couple of seconds it will display a guiText. Can anyone help me with the scripting? I’m pretty new to javascript.

That’s awfully general. I’d suggest learning Javascript first, and do the tutorials so you become comfortable with using Unity. Then if you’re still having problems, post the scripts you’ve come up with and point out particular areas that you’re stuck on.

–Eric