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 would you add ladders to navmesh based movement?

I would like to implement a simple ladder system for AI or indirectly controlled pawns (i.e. top down template), to connect otherwise inaccessible parts of the nav mesh (different floors), where the Pawn moves to the ladder, then using a climbing animation moves vertically to reach the other floor, where it resumes navigating on the NavMesh towards its destination.

What would be the best approach to do this (Preferably blueprint based)?

Is there already something available in the engine to achieve it or would I need to design an additional layer of pathfinding on top of the nav mesh system (i.e. if at ground level and destination is top level, find ladder actor that is connected to both, go to ladder, trigger scripted movement sequence, continue to original destination).

I looked into NavLinkProxy, comes close, but doesn't seem to fit the bill. I'd need something similar but with the option to trigger a custom event on reaching the starting point of the proxy.

As it is a pretty common game element, I'm sure someone already figured it out.

Product Version: UE 4.13
more ▼

asked Sep 04 '16 at 01:42 AM in Blueprint Scripting

avatar image

107 3 10 20

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

1 answer: sort voted first

This is an old question, but perhaps I can still shine some light on it for other people researching the topic. This Reddit thread suggests using Nav Links, in combination with a "Smart Link" option and force-teleport/lerping position of the Pawn once it reaches for a ladder. Basically, you're breaking up pathing into two distinct parts: the moment before it hits the ladder, and the moment it exits the ladder. The ladder itself is not part of the NavMesh interaction technically, because the Pawn is momentarily disconnected from AI pathfinding as it's "climbing" the ladder. After it exits the ladder, NavMesh pathfinding is resumed (by plotting a new path, so yes, a slight extra path-finding overhead is introduced).

more ▼

answered Feb 25 '19 at 08:19 PM

avatar image

91 18 20 21

(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