Announcement

Collapse
No announcement yet.

A.I. Not moving.

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

    A.I. Not moving.

    Alright.
    I copied the UE4 character Blue print.
    I added a pawn sensing component. Just like in the tutorial video.
    Removed everything from the blue print for weapons and such leaving health
    and added a on see pawn/on hear pawn events resulting in AI move to

    Click image for larger version

Name:	Untitled.jpg
Views:	1506
Size:	66.4 KB
ID:	1485378
    As i had made animation things that referensed the Ue4 Character blue print I found really quick I had to make a copy and remove several nodes, as when my character would equip a weapon the AL pawn would move into that position. (i just deleted everything that wasnt a run/walk animation from the tree)

    Created a Nav boundry. Which is green (seems to be the primary trouble shooting question asked)
    Click image for larger version

Name:	Untitled2.jpg
Views:	1390
Size:	36.9 KB
ID:	1485379

    For the most part the Pawn would turn and face to it's right then the screen would start print that move failed..
    Far as I can tell I didnt change anything yet now this doesnt seem to even do this. The pawn just stands there.

    I'm guessing there is a problem with the AI controller possessing the pawn?
    And no idea why i didnt just move when the system WAS working only, changing facing.

    Any ideas, or tips where I should look. Far as I can tell I followed the tutorials.

    #2
    Why you don't set your Destination Vector?

    Comment


      #3
      Originally posted by eddiescofield View Post
      Why you don't set your Destination Vector?
      I dont know. That's just what the Tutorial Did.
      It was to make a simple AI for chasing the pawn. Way he said it in the tutorial I could do something like set the vector if a guard saw the pawn and was supposed to run to an alarm panel.
      But if I just wanted it to run to the pawn, I could just directly connect that...


      I tried several versions just now
      getting player characters location and plugging into vector
      making the target actor cast off on its own

      I put several print strings in
      on sense pawn - sees you
      on cast - casting
      after the move failed - move failed
      After the AI move to the execute goes to - made it to the end

      It prints: sees you, casting move failed, made it to the end

      So I know the pawn is sensing. Casting. And the Node AI move to is being triggered.
      There is a Nav Mesh.
      But pawn will not move.

      I didnt change anything that would have caused the facing to stop. And when I removed the Print string nodes, it stopped printing moved fail (even though that one is still on there)

      I tried putting in the x,y,z of an object in the level thinking that pawn would walk over to it or face it. Didnt work.

      guesses
      1. AI controller doesnt have the right setting set up to move the pawn. Which I have no idea how to check
      2. I did something to the mesh/skeleton that makes it unmovable
      Last edited by Cultusfit; 06-13-2018, 05:11 AM.

      Comment


        #4
        You have nothing plugged into the 'Pawn' spot of the 'AI Move To' node. Probably want a 'Reference to Self' node plugged into it.

        Comment


          #5
          Originally posted by Thuranius View Post
          You have nothing plugged into the 'Pawn' spot of the 'AI Move To' node. Probably want a 'Reference to Self' node plugged into it.
          Tried it. Nothing happened except I got the note that it's already it self so didn't need it
          (Also tried plugging the node into the players character)

          Comment


            #6
            Alright this did have the pawn set to self....

            I'm going to first try to delete the blue print and repeat the process step by step.
            After that if still not working indo have a 3rd person project. I'll try it in that and see if it works. That'll let me know if has something to do with game state.
            Attached Files

            Comment


              #7
              Not sure if it would help, but I always drag from as Character "get actor location" and plug it into the destination on your Move to. Edit added: Also check to make sure your character movement in your enemy BP is not 0.

              Attached Files
              Last edited by NuHabit; 06-13-2018, 05:27 PM.

              Comment


                #8
                Originally posted by NuHabitStudios View Post
                Not sure if it would help, but I always drag from as Character "get actor location" and plug it into the destination on your Move to. Edit added: Also check to make sure your character movement in your enemy BP is not 0.
                I tried the location thing before it didnt work. Loading the engine now to check speed. My character blueprint i copied has had a lot of edits/changes and I fear the problem is something i did to it. I might just have to create a New BP from scratch. Which would have probably been easier by now

                Still doesnt work.
                so it is something in the game mode, or something I set in the BP that doesnt work with the AI

                I dont know much about how AI controllers work. Do I need to set it's "key bindings" somewhere or anything?


                As you can tell from photo the pawn will chase me in the 3rd person base build by just copying the character BP and adding pawn sensing and the nodes above.
                Attached Files

                Comment


                  #9
                  see

                  https://www.youtube.com/playlist?lis...dWN11biFS0MFkR

                  Comment


                    #10

                    Youtube says:

                    The playlist does not exist.
                    ​​​​​​​Might need to check your link
                    Free Community Ocean & Sky Project || Join us on Discord! || Trello Roadmap

                    Comment


                      #11
                      Originally posted by DotCam View Post


                      Youtube says:



                      Might need to check your link
                      https://youtu.be/3GV6-4uhkYc
                      weird did a copy/paste right from site....

                      ​​​​​​​And this works for me in a project that's created as a 3rd person. Doesnt work with my twin stick shooter though

                      Comment


                        #12
                        After making some changes I had the 3rd person go out on me too...

                        so i loaded a new new project and went through the collision settings. Basically when i changed the settings for the mesh to not fall through the capsule when the node "simulate physics" was triggered i was using a preset that would cause the mesh and capsule to be in collision


                        In a post about some death effects, rather than animations a person had used simulate physics node. And that would cause them to fall through the capsule (and thus the floor) The solution was to move the preset to "ragdoll" I would do this then modify them by some custom things (camera blocking etc).
                        When I do this apparently i end up changing both the capsule and the mesh to object type PAWN. And one of the collisions was set to block pawn
                        So i have two objects stuck together, that are set to block each other.

                        Sigh....I figured it was something rather simple that I was changing without noticing what. it was all in that one object type

                        Comment

                        Working...
                        X