Announcement

Collapse
No announcement yet.

Enemy chasing the Player AT SIGHT?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Enemy chasing the Player AT SIGHT?

    I'm developing a Top-down game where the player has to sneak around the enemies without being 'seen'. How do I implement this by using Blueprints, guys? The enemy to basically run behind/chase the player after noticing the player? I'm quite new to this so yes a little help please
    Last edited by dinukaaaa; 02-09-2015, 12:51 PM.

    #2
    Welcome to the Unreal Forums! Please don't make your text huge; It doesn't get your point across any better and is very distracting!

    Check out Peter L Newton's (I see him as the Go-To guy for all things A.I) Tutorials on A.I - You'll be able to achieve everything you're after: https://www.youtube.com/watch?v=VAAHKNoIg0w

    Hope it helps!
    KITATUS
    "Information shouldn't be behind a paywall, It should be free for all!"

    Comment


      #3
      Sorry man, my bad It's a new neighbourhood haha! Here's the thing, I implemented the AI such that the Enemy now chases the Player on sight. I did this using AI Pawn Sensing. Now I just want to limit the Pawn Sensing to a bare minimum when the Player is creeping under shadows

      Comment


        #4
        In your character BP, Create a bool "In Shadows" - Set it to true when he's in the shadows - Then cast to your Enemy and set the AI Pawn Sensing to half or a quarter of it's default sensing ability (Remember to set it back when the character isn't in the shadows anymore!)
        KITATUS
        "Information shouldn't be behind a paywall, It should be free for all!"

        Comment


          #5
          Sounds great man, exactly what I had in mind. My problem is, how do I design the 'is player in shadows' part in Blue Prints? Recognising whether the player is in shadows. Should I use a timer?

          Comment


            #6
            Nah, just put a simple trigger volume where the "Shadows" are. Then when the player collides, set "In Shadows" to true.

            You could get a little more advanced. If the enemy is chasing the player - Then say that "In Shadows" shouldn't fire .etc
            KITATUS
            "Information shouldn't be behind a paywall, It should be free for all!"

            Comment


              #7
              Thanks a bunch man tc!

              Comment


                #8
                Not a problem; If you have any other questions, feel free to ask! If you don't want to share your problems publicly (I don't see why but some people prefer to keep their problems private) then feel free to email me: contact@kitatusstudios.co.uk
                KITATUS
                "Information shouldn't be behind a paywall, It should be free for all!"

                Comment


                  #9
                  Thanks a lot mate! This forum is full of nice people, I'm glad to be part of it! Have a great day, sir!

                  Comment

                  Working...
                  X