Manual penalty changes in grid


I am trying to create an obstacle which is not walkable for standart agents, but it will be walkable by flying agents. flying agents are using same path with others but they can also pass this obstacles. how can i achieve this. I think penalties will be useful for that, but in documentation it says i need an image map for penalty zones. but my obstacles are dynamic(I can change their placement in the game) so is there any way to change grid node’s penalty via script? or do you have any suggestion for my issue


You may be interested in this page: Graph Updates during Runtime - A* Pathfinding Project