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 do I make physical objects non-physical to some NPC's?

High, basically my high school project game has stairs in it. But for some reason the NavMesh doesn't seem to want to acknowledge the stairs exist. This is a problem because the game focuses on several NPC's stalking your character through a world. So, I had the genius idea of putting a ramp on the stairs and making it non-physical and invisible to the player but physical for the NPC's. That said, I have little coding experience and need to get this done really quickly, but don't know where to start.

Any help/advice would be GREATLY appreciated.

Product Version: UE 4.12
Tags:
more ▼

asked Feb 09 '17 at 05:14 PM in Using UE4

avatar image

Totoross
1 1

avatar image Matthew J Feb 09 '17 at 08:11 PM

Hello Totoross,

This shouldn't require any kind of coding. I believe that would help you the most is learning how to use Collision Channels. Collision Channels can be used to set up what actors should collide/overlap/ignore other actors. They can be created/setup in your Project Settings. To give an example, you could make a collision channel for NPC, Player, and Ramp, applying those Collision Channels to the assets they apply to. You could then set it up so that the Ramp and NPC channels respond to each other by Blocking but Ramp and Player respond to each other by Ignoring collision.

You could also use a Collision Volume instead of a static mesh for the ramp so that it is invisible in game but still generates the collision.

As for the Nav Mesh not acknowledging the stairs, it may be related to the collision of these stairs. As a test, could you try selecting "Geometry" under the Modes panel and then dragging a Linear Stair into the level to see if your nav mesh generates a path on that? If so, I would suggest simplifying the collision on your stairs.

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

0 answers: sort voted first
Be the first one to answer this question
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