I'm creating a mod which adds an AI Package to some guards and need this package to be running each hour.
This is a ForceGreet which is linked to a Dialogue (via a Quest). The guard comes to the player as soon as he is in his radius and plays the dialogue. Once finished, the guard should return to his starting location and wait at least an hour before replaying the dialogue, avoiding spam.
What I tried : - Adding a condition in the AI Package for the quest to be below stage 30 to start running, and reseting it after RegisterForSingleUpdateGameTime(1) and OnUpdate() -> Reset(), Stop()/Start() and Stop()/SetCurrentStageID(10), nothing worked...
- Adding a Script at the End of the AI Package using Utility.WaitGameTime(1)
- Using OnMenuClos("DialogueMenu") to trigger an Utilility.WaitGameTime(1)
Hopefully someone will have a better idea. I will continue my research and update if I find a solution