2D FloodPath error, wrong argument

Hey :slight_smile: Following on from that quick Discord chat, attempted a simple 1 agent flood fill implementation and ran into an error following the doc - feels like the implementation might be a bit different / missing a detail?

I tried both implementations manually calling the seeker.Startpath and using ai.SetPath but i think my lackluster C# literacy might be failing me a little.

(Seperately im also a little unsure on what to do with the callbacks, haven’t touched delegates yet, are they required?)

Hi

I think the reason is that you do not wait for the FloodPath to be calculated before you try to start a FloodPathTracer path. The key word is ..you must supply a **calculated** FloodPath ....

Try calling fpath.BlockUntilCalculated() before FindPathForAagent.