Search Unity

Help please!

Discussion in 'Navigation' started by LeoSaufse, Apr 30, 2021.

  1. LeoSaufse

    LeoSaufse

    Joined:
    Jan 14, 2014
    Posts:
    1
    Hi everyone, I am super new to coding and it makes me feel so stupid. But I have followed a super good tutorial on Zombie movement, but there is one part missing that I really want help with, a wander state.

    This is my current script - https://paste.myst.rs/hoz7c6uu right now when I come in range the zombies just walk in place.

    I want something like this -
    - when in wander state
    - generate a new random position for the AI to head towards
    - have AI move to new random position
    - when arrived at random position
    - decide to wander again, or be idle.

    I kinda just want a complete script, but I also want to learn. I am in a discord group but I feel like such a burden becuse I'm such a beginner at this, someone please help!

    And please, explaine like I'm five, with half a brain.