UglyDucklingStudios Posted January 29, 2013 Share Posted January 29, 2013 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 More sharing options...
Xaranth Posted January 29, 2013 Share Posted January 29, 2013 It sounds like either the package target is wrong, or she's doing that thing NPCs do where they pick the wrong package out of multiple packages of the same type. Link to comment Share on other sites More sharing options...
UglyDucklingStudios Posted January 29, 2013 Author Share Posted January 29, 2013 Well I'm using AddScriptPackage to give the NPC the Ai Package does using this cause problems like that? Link to comment Share on other sites More sharing options...
Xaranth Posted January 29, 2013 Share Posted January 29, 2013 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 ANDbTravelPackageB == 0 ANDbTravelPackageC == 0 Link to comment Share on other sites More sharing options...
rickerhk Posted January 29, 2013 Share Posted January 29, 2013 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 More sharing options...
Recommended Posts