hmm Now I can deform my chunked terrain.
In the manual it's written that this is not possible, but this is working...
ENTITY* ent_terrain;
function main()
{
terrain_chunk=8;
..... level_load
}
action a_terrain()
{
wait(1);
ent_terrain=my;
my.material = mtl_terraintex;
wait(100);
var i;
CONTACT* c;
for(i=0;i<ent_vertices(ent_terrain)*ent_vertices(ent_terrain);i++)
{
c = ent_getvertex(ent_terrain,NULL,i);
c.z += 50; // increase the vertex height
c.v = NULL; // c.x,y,z was changed, instead of c.v
ent_setvertex(ent_terrain,c,i); // update the mesh
wait(1);
}
}