When I place an element ie a fire inside an area the ai bots can recognize the navmodifier I have attached to it and try to avoid it.
But… when I spawn the element later in the game the bot cannot recognize the navmodifier area an fall inside the fire…
Any ideas how can I apply the navmesh for spawned element too?
thank you in advance!
Try editing the variable Runtime Generation under Edit->Project Settings->Engine->NavigationMesh.
I change the variable to Dynamic but I think that the problem is my bp code. My bots perceive as a hazard the last fire I spawn and Ignore all other. I thought that the Event Tick AI should change the hazard key on every tick but it remains the same as long as I do not spawn additional fires. The code is simple: when the bot can see the fire the state switches to alarm and try to evacuate using the sortest route.
1)Any idea on how to resolve the stucked hazard actor and reset it every time a bot is able to see another hazard (not a spawned one but an existing one)?
2) My bots seem to behave like a single person. A bot in the basement is aware of the danger when a bot detects it on the upper floor. How can I force my bots to act sepatetely and not like a bee hive?