If you only have one terrain the easiest way to address it is to use an action with a pointer:

ENTITY* my_terrain = NULL;

action act_my_terrain()
{
my_terrain = me;
}

############

terrain_min and terrain_max are meant to be the position of the lower left and the upper right corner of the terrain respectively.
I am not 100% sure but I think terrain.min_x/max_x works:

vec_set(terrain_min,my_terrain.min_x);
vec_add(terrain_min,my_terrain.x); // my_terrain.x may be 0 because I think the terrain gets converted to world coordinates
vec_set(terrain_max,my_terrain.max_x);
vec_add(terrain_max,my_terrain.x);

If this does not work you will have to figure out a way how to set those vectors up. You can do it.

Last edited by Superku; 03/09/15 17:38.

"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends