Please show me a simple movement script like on that manual page with gravity. Like I said, I find the Gamestudio collision system hard to use right compared to the ones of some other engines. It´s not clear how to use it properly.

My own try kind of works but I need the floordistance because otherwise i get stuck on some concave floor edges. The floordistance makes it impossible to prevent running up very steep slopes though. I think it would be easiest if it simply were possible always apply gravity to the ellipsoid but for that the collision system doesn´t seem to be robust enough.

Code:
action movement()
{
	var speed = 0;
	var speedz = 0;
	var friction = 0.75;
	var frictionz = 0.1;
	var floordistance = 2;
	var move
	var movez;
	
	my.min_z += floordistance;
	
	while(1)
	{
		result = c_trace(my.x, vector(my.x, my.y, my.z - 5000), IGNORE_ME | IGNORE_PASSABLE | USE_BOX);
		if(result > floordistance)
		{
			movez = accelerate(speedz, -10, frictionz);
		}
		else
		{
			speedz = 0;
			movez = floordistance - result;
		}
		
		my.pan += (key_a - key_d) * 10 * time_step; 
		move = accelerate(speed, (key_w - key_s) * 10, friction);
		result = c_move(my, vector(move, 0, movez), nullvector, IGNORE_PASSABLE | GLIDE); 
		
		wait(1);	
	}
}