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"

Is it possible to have a pawn that walks using nav mesh, that is not a character?

Is it possible to have a pawn that walks using nav mesh, that is not a character?

Product Version: UE 4.21
Tags:
more ▼

asked Mar 23 '19 at 06:33 AM in Blueprint Scripting

avatar image

Colugo
38 3 3 5

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

2 answers: sort voted first

Thanks for your reply mrlz, however that was not what I meant. That being said, this is something I was eventually going to do, so thanks for the great info!

On another note, in my email I got two replies to this question, and one was right! However, that answer isn't appearing here, so I'll repeat it:

"Yes, you can use a normal pawn with the Floating Movement Component. You can then call the "Move to Location or Actor" node on it and it should work just fine as long as you have a navmesh in the level." Credit to Stormrage256

I'll wait a day or so for Storm to take credit, if not i'll mark this as answer.

more ▼

answered Mar 25 '19 at 10:33 PM

avatar image

Colugo
38 3 3 5

avatar image Stormrage256 Mar 26 '19 at 07:00 AM

Hi Colugo, I removed the answer because while the FloatingPawnMovement works perfectly fine on movement along the nav mesh, I wasn't sure if it had an Orient Rotation to Movement parameter like the CharacterMovement component.

After taking a look at it today, it doesn't seem to have the said option. But you can instead use the Use Controller Rotation Pitch/Yaw/Roll. For AI pawns, both parameters yield identical results, but for player pawns (due to the presence of cameras), they function slightly differently. You can read more about it here: https://forums.unrealengine.com/development-discussion/blueprint-visual-scripting/95595-difference-between-orient-rotation-to-movement-and-use-controller-desired-rotation?p=834512#post834512

And btw you can mark this as the answer if it provided the info you were looking for.

avatar image Colugo Mar 26 '19 at 07:13 AM

Thanks for the answer plus additional info on it Storm!

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

do you mean walking at random location inside the navmesh bounds?alt text

Then on event begin play call that function to repeat the ai move randomly

untitled-1.jpg (324.2 kB)
more ▼

answered Mar 25 '19 at 09:29 AM

avatar image

mrlz
61 1 2 3

(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