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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

How can I have my NPC walk off ledges?

I enabled "Can Walk off Ledges" for my npc, but he still will not walk off ledges. Im using the side scroller C++ template and my npc inherits the Character class.

Here is the enable walk off ledge: alt text Here is how my npc walks: alt text

How can I get my npc to walk off ledges?

Product Version: Not Selected
Tags:
untitled.png (58.1 kB)
untitled2.png (245.3 kB)
more ▼

asked Aug 11 '14 at 10:49 PM in Blueprint Scripting

avatar image

JakeOfSpades
185 12 15 26

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

1 answer: sort voted first

Hi JakeOfSpades,

You will want to go into your "All Classes" in the Place mode menu and put a Nav Link Proxy into your game. You can select each end of it directly to show where the AI can jump to/from. Here is some more documentation on them:

https://docs.unrealengine.com/latest/INT/Resources/ContentExamples/NavMesh/1_2/index.html

You can see it in action in the Content Examples project's NavMesh map.

Let me know if that helps.

-Alexander

more ▼

answered Aug 12 '14 at 03:58 PM

avatar image JakeOfSpades Aug 13 '14 at 12:03 AM

Ok I added the Nav Link Proxy into my scene by dragging and dropping in. Now, my AI (how it moves) is done in my NPC Character blueprint/class but the Nav Link Proxy is in my level blueprint, how can I access the Nav Link Proxy (in the Level blueprint) in my npc character blueprint?

TL:DR My Nav Link proxy is in a different blueprint then my Ogre/NPC is, how can I get/set the variable if its another blueprint.

avatar image Alexander Paschall ♦♦ EPIC Aug 13 '14 at 09:41 PM

The Nav Link Proxy is just an actor that essentially says 'The Nav Mesh is Connected Here" and allows the AI to walk off of that spot. You would need to set up behavior in the Ogre to detect that it is near an edge and then activate a jump function.

Our AI developers are working on a "Jumpable Location" actor as well, but it will take some time to complete.

avatar image JakeOfSpades Aug 14 '14 at 01:59 AM

I got it, the arrows were not close enough but now I see the connection.

(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