Handling Navmeshes With Generated Structures

Post » Tue Feb 16, 2016 11:19 am

Hey everyone!


I can't seem to find much information about this, so pardon me if I've overlooked something. I'm trying to spawn in a structure that I want to be navmeshed. Considering the nature of them, I've been unable to access them via script and from what I've read, that's impossible.

So how exactly would you spawn in a navmeshed structure? Is such a thing even possible?



Thanks, and take care!

User avatar
TOYA toys
 
Posts: 3455
Joined: Sat Jan 13, 2007 4:22 am

Post » Tue Feb 16, 2016 12:12 pm

Only way afaik is making the two navmeshes (before and after the change) and then disable/enable them. This is possible in FO3/NV not sure about Skyrim.



Don't think that a system like in Fallout 4 is even possible in Skyrim.

User avatar
naana
 
Posts: 3362
Joined: Fri Dec 08, 2006 2:00 pm

Post » Tue Feb 16, 2016 12:22 pm

Hey, thanks for the response. =-)


Specifically I want followers to interact with the structure, mainly just for immersion purposes honestly. But if it's not possible, then I can live with it.

I wonder, are there ways to imitate a navmesh with currently available resources?

User avatar
Lakyn Ellery
 
Posts: 3447
Joined: Sat Jan 27, 2007 1:02 pm

Post » Tue Feb 16, 2016 6:46 am

Navmesh the structure, then place a Navcut primitive on the parts where NPC's can walk into it. When you enable the structure, disable the Navcut.

You can make a navcut by creating a collision primitive from the toolbar, go to it's primitives tab and set it to Navcut.

That's the fastest way to manipulate navmesh in script imo.

User avatar
Sarah Knight
 
Posts: 3416
Joined: Mon Jun 19, 2006 5:02 am

Post » Tue Feb 16, 2016 11:27 am

As Di0 says create a primitive navcut type box on top of the navmesh and enable/disable via script whenever you want your NPC's to be able to walk over it or not. You can also make your structure a parent object and the primitive a linked child object so whenever your structure is enabled/disabled so will the navcut box too.



Have a look at the player homes its basically how purchased house upgrades work the purchase script enables an invisible xmarker and all the linked child objects (the previously disabled and invisible house upgrade objects) all become enabled and visible too. In the case of Hearthfires theres a few navcut boxes that are disabled/enabled too where the child bedrooms will be especially Proudspire as you don't want NPC's trying to wander into a room that doesn't exist/hasn't been purchased yet.

User avatar
Elizabeth Davis
 
Posts: 3406
Joined: Sat Aug 18, 2007 10:30 am


Return to V - Skyrim