x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

"Simple Move To" for AI character, only rotates it

Hi everybody!

I have a plane (floor), and a navmesh bound on my level. I have my character. I can select it, and ask to go at the clicked location with "Simple Move To Location" node. The character rotate to the clicked location but don't move!

I tried to adjust all possible collision... But I don't know why the character is locked... I show up the Navigation, everything is correct. No error.

Thank you for help! Kiss <3

Product Version: UE 4.18
Tags:
more ▼

asked Dec 02 '17 at 03:18 PM in Blueprint Scripting

avatar image

Goetheus
12 3 8 8

avatar image User609571414 Dec 03 '17 at 08:12 AM

Hi Goetheus, Need more information. Can you post some screenshots of your blueprints.

avatar image Goetheus Dec 03 '17 at 10:17 AM

Hi @User609571414 ! Here are some blueprints! :)

Left Click : alt text

Right Click : alt text

Unit blueprint : alt text

How to spawn : alt text

Everything seems good, but the unit only look at my mouse click, and don't move :/ I use the default AIController from UE4.

avatar image ViceVersa Dec 03 '17 at 11:00 PM

if you click on your ai in the map, or in the blueprint, if you scroll down in the details panel to the section called "Pawn", where it says Auto Posses AI that should be set to "Placed in world or Spawned" and the Ai Controller Class should be set to "AIController" or the custom one that you made.

avatar image Goetheus Dec 04 '17 at 11:05 AM

Hi @ViceVersa! Thank you for your answer! Yes! I verified these elements a lot of times! I tried to spawn manually the AI and possess it. Same result :/

avatar image Goetheus Dec 03 '17 at 12:47 PM

I tried with all "move to" nodes. Same problem : the unit rotate to look at the goal location, but don't move. Everything seems well. I think it's a problem with the navmesh or a collision maybe...

EDIT : The navmesh is well configured and well generated (with modifier invokers). I tried a lot of collision options, without any success :/

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

3 answers: sort voted first

Hi everybody!

I found the problem! It was on the Character class, in Character Movement : under Character Movement (General Settings) I put the "default land movement node" to "navmesh walking" and not "walking" by default.

I will check "accept this comment as correct", but, I have another problem, which was here before. When I spawn my character, sometimes it is destroyed immediatelly. It depends on where I spawn it. But now, when it is spawned and when I move it, it is destroyed when it reach one of these "destroyer" areas... Why?! O_o

more ▼

answered Dec 04 '17 at 11:51 AM

avatar image

Goetheus
12 3 8 8

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

Post Some Screenshot of Blueprints U need AI moveto Node Too.

more ▼

answered Dec 03 '17 at 09:54 AM

avatar image

SupDeity
468 4 6 15

avatar image Goetheus Dec 03 '17 at 11:16 AM

I post some blueprints above :) I need AI Move to with Simple Move to Location? I add it behind the Simple move to node. Nothing different :/

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

Ok I have a solution for this, U might have set the initial Lifespan Wrong. Open UR AI's Blueprint and search for this " Initital Lifespan" and set it to 0.0. 0.0 means it wont be destroyed automatically. Also i checked ur blueprints and i think for a simple ai to move towards u [ if that is what is happening here ] that is too complicated. if u just want the ai to move towards u then i would suggest u to look for Virtus Learning Hub's AI tutorial it is very easy and not complicated

more ▼

answered Dec 04 '17 at 07:06 PM

avatar image

SupDeity
468 4 6 15

avatar image Goetheus Dec 05 '17 at 11:07 AM

Hi @Jurrasic Studios! I verified the lifespan and it was always 0.0 in the unit and in the AI controller :/ Thank you for Virtus youtube channel! I will show that :)

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question