Get the flight altitude using LUA

How to get altitude in LUA scripts without gps, because there is a barometer on board

You can get the height of the barometer using the get_altitude() function, it is not available in the documentation on the site Lua Scripts — Plane documentation I found this function in the bind file, ardupilot/libraries/AP_Scripting/generator/description/bindings.desc at master · ArduPilot/ardupilot · GitHub