I’m creating a small network game, but have a problem I hope someone can help me with.
When a player creates a new structure (bridge, ramp) that is walkable I run this line of code to update the grid graph:
AstarPath.active.UpdateGraphs (currentBuilding.collider.bounds);
Problem is that this only updates the grid graph for the player that places the building. Other connected to the game gets the structure, but the grid graph isn’t updated.
Tried using an RPC call, but with no success (could been doing it wrong). Is there a way to update the graph for all online players?