Jump to content

Problem with Ai Packages


UglyDucklingStudios

Recommended Posts

So I'm having trouble with creating an Ai Package for my NPC. What I'm wanting it to do is travel towards a Xmarker heading but for some reason the NPC walks off down stairs and through a door that leads to no where but she teleports outside of The Atomic Wrangler (I copy pasted it for my interior by the way). Any idea why this would be happening? If so it would be awesome if you could tell me the solution!
Link to comment
Share on other sites

I'm pretty sure it happens whenever an NPC has multiple packages of the same type; the workaround is to very explicitly mark all packages of the same type with control variables in the conditions.

 

IE:

 

TravelPackageA, TravelPackageB, TravelPackageC, you'd want the conditions for A to read like:

 

bTravelPackageA == 1 AND

bTravelPackageB == 0 AND

bTravelPackageC == 0

Link to comment
Share on other sites

If you copy/pasted from another cell - did you remove any traces of the old navmesh and create a new one for your cell, and finalize it? If you want reliable AI you need a good navmesh - also no unreachable portals or furniture markers (for sandboxing AI). You may also need to esmify the plugin to overcome certain navmesh bugs for testing and release.

I've found Scriptpackages to be fairly reliable if the actor doesn't need to go through a portal, as it overrides the Packages on the actor package objects. Otherwise its' better to use a package on the actor object. The scriptpackage also doesn't seem to be reliable on game reload or fast travel, unless a script is used to re-apply it.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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