Is it possible to add a penalty for moving in the positive Z direction

Hi everyone, first time using A* and I’ve been searching for a way to limit my character from traveling in the positive z direction. Is there a way to do this?

Sorry, not without some coding. All included graphs assumes for performance that all edges in the graph are unidirectional and have the same cost in both directions.

What you can do is to add a penalty for being at higher z coordinates, that might work for you.