Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Need Help With Enemy AI Scripting

Discussion in 'Scripting' started by Ansimi, Jul 7, 2015.

  1. Ansimi

    Ansimi

    Joined:
    Jul 7, 2015
    Posts:
    2
    I am a newbie to the world of game design and now I need help with AI scripting.
    Just to let everyone know that I have knowledge of coding. I just wanted to take it to the next step and learn AI.
    Can anyone provide me with a PDF about Unity AI scripting for beginners?
    Thanks.
     
  2. LeftyRighty

    LeftyRighty

    Joined:
    Nov 2, 2012
    Posts:
    5,148
    AI to do what?
     
  3. LaneFox

    LaneFox

    Joined:
    Jun 29, 2011
    Posts:
    7,386
    AI isn't any different then scripting regular things.
     
  4. lineupthesky

    lineupthesky

    Joined:
    Jan 31, 2015
    Posts:
    92
    Well AI is a complex subject, but when dealing with Unity, there is no extra stuff to do to learn AI scripting. You only need to know gameplay programming in Unity, which you can master by watching official Unity tutorials. Only thing you may count as a problem is that the algorithm or the logic of the AI behaviour. Which can simply be dealt with by thinking a lot amd preparing draft sheets for your desired behaviour.
     
  5. Kiwasi

    Kiwasi

    Joined:
    Dec 5, 2013
    Posts:
    16,860
    AI in games is normally implemented as a finite state machine or a behaviour tree. Google those terms and you should find some details. Be warned AI is a very complex topic.
     
    magnite likes this.
  6. Ansimi

    Ansimi

    Joined:
    Jul 7, 2015
    Posts:
    2
    Thanks for the replies... I think I will postpone learning AI and first try to master other aspects of unity scripting.