I am trying to change altitude using a specific vertical speed using autopilot
what i have done is :
1 - set autopilot master switch to true through sim variable "AUTOPILOT MASTER".
2 - set altitude hold mode selector to true through event "AP_ALT_HOLD_ON" as the simvar "AUTOPILOT ALTITUDE LOCK" is nonsettable .
3 - set the altitude in the altitude selector through sim variable "AUTOPILOT ALTITUDE LOCK VAR".
4 - set the vertical speed in the vertical speed selector through sim variable "AUTOPILOT VERTICAL HOLD VAR".
using different order combinations and although all the variables are set correctly, it doesn't work for AI Controlled Simobjects but works only SOMETIMES for user sim object .
simobjects keep oscillating about its current altitude ,not the one set in altitude selector "AUTOPILOT ALTITUDE LOCK VAR" sometimes even for user simobject.
Does anyone suggest a solution to change altitude using a specific vertical speed either using or without using autopilot.