try this:
if(GetAltitude()<11)
{
UpdateOnly2TimePerSecond+=simdt;
if(UpdateOnly2TimePerSecond<1)
return;
UpdateOnly2TimePerSecond=0;
double longitude=0;
double latitude=0;
double radius=0;
GetEquPos (longitude,latitude,radius); // Get our position
VECTOR3 th={longitude,latitude,650};
if(GetAltitude()>5)
th.z=0;
SetRotDrag (th);
}
VECTOR3 th={longitude,latitude,650}; here the 650 is the radius of the breathable area. The one thing is the breathable area is not saved. So don't leave your ummu unsuited at the end. I think this generates air so it takes a minute or so for an atmosphere.
I got this from Dan
It was placed as the last part of the clbkPostStep
in your h.
double UpdateOnly2TimePerSecond;