Jump to content

how do you override an AI package with another AI package?


Recommended Posts

I have a sandbox package on my NPC but I need my travel package to override the sandbox package when a quest stage has been completed.

 

at the moment, once the quest stage has been completed, the NPC just sticks with the sandbox package and does not use the travel package, when I remove the sandbox package, the travel package works fine.

 

I have already put the conditions on the travel package but I don't know what to do with the sandbox package.

 

Thank you.

Link to comment
Share on other sites

Give your sandbox package a condition as well that is only met before the travel package should be used. Once you've reached the new quest stage, in which the travel package is supposed to be executed, tell your actor to re-evaluate his packages. I usually do that in a quest stage fragment by adding an actor property(don't forget to set up the value of the property afterwards) and then I just write one line of code: myActor.EvaluatePackage()

This causes him to check the conditions again and choose the appropriate package.

 

 

Take a look at this link for further information:

https://www.creationkit.com/index.php?title=EvaluatePackage_-_Actor

Edited by 84Cronos
Link to comment
Share on other sites

  • Recently Browsing   0 members

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