Here the C_MOVE-Code for the Entitys:

c_move(me,vector(my.x_force*time_step ,my.y_force*time_step, 0),vector(0,0,0), IGNORE_PASSABLE|GLIDE); //

HOUSEs Code
The Most part of this action handles Shadow and visible of the house.

action GAYA_HAUS2
{
//my.push = 99;
my.passable = off;
my.polygon = on;
//my.ambient = -12;
my.material=haus_mat;

while(1){
if(vec_dist(my.x,player.x) >4000)
{my.invisible = on;}
else
{my.invisible = off;}

if(vec_dist(my.x,camera.x) <1000)
{my.shadow = on;}
else
{my.shadow = off;}


wait(1);
}
}

------------------------------------------
It`s not the Code`s error!
It`s the engine.
I`ve the trouble only when i change the Angle of the house/Box - Modells
more than 90 Degrees in WED (see Video-link above).
If i`m seting the Pan-Angle back to zero, it works perfect again.

Last edited by Nikozu86; 03/23/09 17:56.