Change MassAI behaviour during runtime.
I am using massAI to simulate a crowd in a city. I want two different zone graphs that can’t be used simultaneously. Let’s say that I want to start with the crowd in one path, press the button “P”, and then the crowd must change to the second zone Graph.
My idea is to have an ST with two states, one for the Path “A” and the other for the Path “B”. Each state will have its corresponding ZG Find Wander Target, selecting the zone graph with a tag.
My problem is that I do not know how to have control over that ST from a BP. How can I tell to the ST that it has to change the state? I tried to do it with a parameter, but how can I modify the ST parameter?
I tried to use an Evaluator, but I cannot create one since it follows a Mass Behaviour schema. (Maybe it is possible using C++, but I couldn’t find anything).
Is this the correct approach? I really appreciate any help you can provide.