I need help with a waypoint script. I added it to ai, but I can’t set waypoint. All it shows me, **when I go to the AI GameObject is the script and not the option to set the waypoint. Here is the script.
var waypoint : Transform;
var speed : float = 20;
function Update () {
var target : Vector3 = waypoint.position;
var moveDirection : Vector3 = target - transform.position;
When I go to inspector AFTER I CLICKED ON the AI GameObject that I want to set waypoint script for I then go down to the script I have written up and it only displays the script name, not the option of setting the waypoint. What am I doing wrong? Thanks for the help.
Well it works now. Weird thing is that I had to delete the gizmos that I was using for the waypoint in order for it to work. Thanks for the help though. It works now. How does the gizmos script effect whether or not the way point works? Weird. Thanks.
EDIT
Sorry I didn’t post info about the gizmos for I didn’t think the two were connected.
I figured out the problem. I had to delete the gizmos.