Unity 3d AI Tutorial 3 - MultipleWayPoint System

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
19,169
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Dec 21, 2009

A mulit-waypoint system, also great for cinematics, that allows you to move an AI to multiple locations, also adding in looping.

Category:

Education

Tags:

License:

Standard YouTube License

  • likes, 2 dislikes

Link to this comment:

Share to:

Uploader Comments (steamisM50)

  • This is great, good work man, With my game i am making lots of houses and stuff so i want the ai to be able to naviagate through these houses to get to the player and stuff including going up stairs. So is there a way to make the ai do this using this kinda method or is there a better way? Thanks in advance (:

  • @XDGabzXD If you go check out my A* tutorials, they cover the exact behaviour that you are asking about.

  • Im doing everything exactly as in the video and I keep getting this error:

    "Cant add script behaviour OneWaypoint. The scripts file name does not match the name of the class defined in the script."

    What am I doing wrong? Can someone help plz!!!! Thank you.

  • @JasonDolan2169 Check to make sure the class is the same name as the file. It won't work otherwise.

  • @steamisM50 Ok forgive me for asking but where/what is the class?

  • @JasonDolan2169 What is the file extension on the file, because if you are writing in CS, it has to have a class, if the file extension is .js then the error should be happening, but if it is .cs, then copy the contents of the file into a .js file...

see all

All Comments (68)

Sign In or Sign Up now to post a comment!
  • just so people know, if you want the enemy to look at the waypoint, add

    transform.LookAt(waypoint[curr­entWayPoint]);

    directly below

    velocity = moveDirection.normalized * speed;

  • can you get him to wait at each waypoint for a few seconds?

  • @steamisM50 all your videos are confusing, or are they not in an order? What is the one you mean? If i use the raycast one wount it turn away when the player goes up stairs? (:

  • thanks i love the tutorials :D subbed :)

  • @steamisM50 The file extension is .js

    So that isnt the problem. Im not sure but the problem might be this message that comes up every time I save a script: It says,

    "Moving file failed

    Moving

    Temp/f250bb76f0c84b84fa663eb4e­2b7d666.dll to

    Library/ScriptAssemblies/Assem­bly-UnityScript.dll

    Failed: Access is denied."

    Do you have any clue what that means??

    Its very annoying, it pops up all the time...

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more