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"

How to expose "AI is seeking a Nav Link"

I need to pull the information that is telling the AI to seek a nav link so that I can use that in a factor to make them start a climbing / jumping / crawling etc montage. (to get them to climb over an obstacle, climb up a ladder, crawl under a thing). I know the AI is clearly seeking the nav link, but how can I expose that information so I can use it?

Product Version: UE 4.16
Tags:
more ▼

asked Nov 05 '17 at 10:29 PM in Blueprint Scripting

avatar image

NineHydras
13 3 6 14

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

1 answer: sort voted first

Ai is seeking Nav Link and it working without any changes - just place NavLink, move left and right nodes to desired place. This is simple use of NavLink between two nav areas (separated).

If you need start any action on your pawn, you should use Smart Link. Smart Link is in NavLink under Simple Link. This can be confused - some steps:

Make sure, smart link start and end is same as left and right (on this sample you have jump down but with jump behavior and animation):

alt text

then in level blueprint:

alt text

Crowder is my AI name.

As I said, this is sample for jump, but working with other actions too.

Most important - Smart Link is relevant [x] checked.

You can tweak also snap radius and height and broadcast.

This sample is simple but works. I have production functions but they are too complicated to post here, you should make progress with this sample.

Exposing - Ai will use nav link when it will be on the way. Or you should use special behavior tree action or blueprint - op to you - to find specified nav link what is too broad question, but I think, Ai will use it best when it will be necessary and correctly placed on path, nav mesh.

more ▼

answered Nov 05 '17 at 11:13 PM

avatar image

Vaheva
1.3k 24 29 52

avatar image NineHydras Nov 06 '17 at 12:43 AM

Hey, this is great information thank you so much! Is it possible to get "reached" from NavLinks created as child actors in blueprints? I'm not certain that there's a "smart link" option in those unfortunately and it'd be really handy to be able to have the nav links attached directly to the actors themselves as child actors.

alt text

alt text

link-02.jpg (95.2 kB)
link-01.jpg (38.4 kB)
avatar image Vaheva Nov 06 '17 at 01:03 AM

This is my next step. I'm still tweaking my NavLinks like this just placed on level and here a lot of issues - some from engine, some my design connected - not bad, just complicated.

I'm sure (as I know), in theory is possible to use it as child actors or any other way spawn on actors, attached etc. Just we will have problems with smart links locations. It need great code to make left/right and start/end (for smart link) in correct place on the world with dynamic actor - movable or not.

I just back to NavLinks because worked long time on other my project stages, but months ago I found bug blocked from using NavLinks attached, I believe this is solved now, this thread https://answers.unrealengine.com/questions/582746/nav-link-bug-not-nav-link-proxy.html looks fixed, but I not test it yet in 4.18. This is one of reason I drop ai and work on inventory and other things first last few months.

In this sample (thread) I use NavLinks inside other blueprint placed on the world. This is not movable "housing" - just sketch up for test, but it worked as expected, now after fix even better :D

You can mark as solved I think.

avatar image NineHydras Nov 06 '17 at 01:14 AM

So, upon creating a "Nav Link Proxy" as it's own blueprint class I am able to place one as a child actor into the pattern and send an event receive notification via smart link exactly as I needed, thank you so much this has been incredibly helpful!

avatar image Vaheva Nov 06 '17 at 01:20 AM

Enjoy :) This solution was 1st what I thought, but then I looked for way how to do it, very angry few days - for me doc's are very limited in this matter. But finally it works and I'm glad too :D

(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