I have done that and it still doesn't work.I have a model that can go to the edge of the terrain even though i used a terrain and level_loadendless().Also i switched to the camera mode by pressing 0 and then the terrain worked again but the model still went to the edge of the terrain. Here is my new code:
Code:
#include <acknex.h>
#include <default.c>
#include <level.c>
action player_stuff()
{
	c_setminmax(me);
	while(1)
	{
		camera.tilt = -10;
		camera.x = my.x - 160;
		camera.z = my.z + 50;
		c_move(me,vector(key_w - key_s * 15 * time_step,0,0),nullvector,GLIDE);
		wait(1);
	}
}

function main()
{
	level_loadendless("freeworld.hmp");
	terrain_tile(level_ent); 
	ent_create("player.mdl",vector(0,0,25),player_stuff);
}



Last edited by Dega; 05/20/12 04:26.

boolean my.awesomeness = so true;