Ok have tryed this:
TTerrain terrain;
TEntity scene=LoadScene("scene/scene1.sbx");
int i;
for(i=0;i<CountChildren(scene);i++)
{
TEntity e = GetChild(scene,i);
str cl = GetEntityKey(e,"class");
if(cl=="Terrain")
{
terrain = e;
SetEntityKey(e,"status","handled");
}
}
when i try to debug its still quits while its loading