SGTbayk47 Posted November 2, 2015 Share Posted November 2, 2015 (edited) EDIT: Shortly after writing this I made a small change to the Courier's AI package. It turns out I just needed to set his destination as a linked reference rather than a specific one. So consider this question solved! (Any moderators may delete this now if they want) Hi all, Currently working on a mod, and I have an NPC that I'm trying to add some AI packages to. The first package the NPC has is a sandbox package at an X marker, this is the default package they start with when the game loads. I checked the 'Must Reach Location' flag on this package thinking it would make the NPC sandbox near the marker, but that doesn't seem to be the case. I then made a second package for them, which makes them find the player and talk to them. This package has the 'Must Complete' and 'Always Run' flags checked. I added this package to the NPC with a small script, here: SCN aaaHECourier01Script Begin OnLoad aaaHECourier01REF.AddScriptPackage aaaHECourier01Package01 aaaHECourier01REF.Evp End This script is working, because when I wait a few hours, the NPC will find me and speak to me. The problem I'm having is getting them to go back to the X marker and sandbox near it like they are supposed to, instead they just wander around the player once the dialogue is over. It was my understanding that when an actor finishes a package added via 'AddScriptPackage' it would be removed, and thus they would revert to their old package. Also note that on the goodbye topics for the NPC dialogue I added this to the result script: aaaHECourier01REF.Evp I thought this would make sure that the 'AddScriptPackage' was removed, and that they'd start heading back to their original sandbox location. If someone knows what I've done wrong and would like to help, it would be greatly appreciated and you will be credited for your help when I release the mod (if you wish to be credited that is). Cheers, BayK. Edited November 2, 2015 by SGTbayk47 Link to comment Share on other sites More sharing options...
Recommended Posts