Jump to content

[LE] NPC Circumvent the Cart


Recommended Posts

If you are a fan of Touring Carriages like me you know what I mean. Imagine there's a carriage in the middle of the street in one of the small towns, what happens next? All NPC get stuck on their way never knowing how to circumvent the obstacle. They just can't see it. So, how to prevent NPC from bumping into the cart?

 

At the same time NPC can see each other somehow. They never bump into each other. AI handles that.

 

Probably it's a silly idea, but I wonder if making a cart an actor may help or not? If it's ever possible to make an actor of a cart.

Link to comment
Share on other sites

First of all npc don't actually "see" or use vision as you may think, it all has to do with Navmesh and if there is below the cart NPCs will still try to go from point A to point B using the shortest lenght between them.

To avoid this, either remove Navmesh from below the cart, or add NavCut around the cart.


* I don't think is possible to create a Static Actor, but i've never try it.

Link to comment
Share on other sites

The cart can be anywhere. It's unpredictable. It temporarily occupies the spot in the street or on the road in the wilderness. So it makes meaningless editing Navmesh.

Can I attach to the very model of a cart something similar to NavCut?

 

Still have no answear on how NPCs avoid bumping into each other and into PC.

Link to comment
Share on other sites

NavCut is a CK function - tool only, so you can't open it as a mesh in NifSkope or other program, and place it around the cart.

Aren't you using xMarkers or xMarker Heading to move the cart around the world ?.

If you are, then you can place the NavCut in all of those places in a "Initialy Disable" state and enable them only when the cart is in that location - position.


* "Still have no answear on how NPCs avoid bumping into each other and into PC."


You will need to research this online, too much stuff to write here and you can probably find some post with images to help you understand better.

A hint : They work just like if you are watching from the top a 2D map - radar. (little dots avoiding each other).

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...