"All the scripting commands to change flightheight do not work for loiter action." Can't you use flyinHeightASL to stop it? https://community.bistudio.com/wiki/flyInHeightASL I could swear that I've tried it before and it worked.