RenatoB
It doesn't work 100% because the newly created object can't be picked in the function.
The solution is to either add a wait 0 before calling zorder or just run it every tick.
Thanks for the explanation, — I fixed it.
Create a "Wait 0 " action right before you call zorder().
Thank you for this nice solution, —