Dynamic navmesh

Post » Sun Feb 23, 2014 12:33 pm

I've been playing the guild 2 recently, its a great concept even though horribly ridden with bugs.. anyway, i thought it would be fun to bring some of its elements into skyrim via a mod.

I'm trying to figure out if i can dynamically place buildings and such in random places. Spawning the building object was easy enough but then there is the issue of pathing, as far as npcs are concerned, the building doesn't exist. The only way i think it might be possible is if i designate an area, chop the navmesh up into small pieces and enable/disable them through a script to sort of match the building.

I haven't actually tried it yet but i can see 2 problems coming my way already. For one, i would still have to semi fixate the viable positions so a building would "snap" to make sure npc's can still get to the door without running into other protruding parts of the building and there would be only 90 degree rotation.

Second, as far as i know there is no way to create navmesh objects by script, it would be an awful lot of work to create, label and link all the pieces manually. I might be able to clone pieces but that would restrict me to pretty much flat ground.

Maybe anybody knows a better solution?

User avatar
Josh Dagreat
 
Posts: 3438
Joined: Fri Oct 19, 2007 3:07 am

Return to V - Skyrim