Lua script autopilot behavior

so i’m trying to make a “dive down” sequence using lua script, but my current problem is that the autopilot goes downward first before going forward, making the trajectory look like an L-shape.

few methods that i have tried is using a waypoint, and using NED (North, East, Down) velocity commands, both doesn’t work

how can i achieve a smooth dive down sequence with guided mode?

I would look at scripted acrobatics in the repo.