Thank you very much, but isnt c_scan not somekind of not precisly? why u use c_scan for this and not c_trace?

i just thought that c_trace would be more efficiently.. am i wrong?


and in this example, it is always in the ...

Quote:
action door()
{
var my_z = my.z;
doorEnt = me;

while(1)
{
if(my.skill20==1)
{
while(my.z<my_z+50) { my.z+=3*time_step; wait(1); }
if(my.z>my_z+50) my.z = my_z + 50;
// That line depends on your world cordinates and door
// Also you can add closing door thing
}
wait(1);
}

}


.. loop? its always in there? doesnt that means its getting a little bit slower then to just wait till i push a button?
or do i get something wrong?


Thanks anyway, i will test this one out, but if its slower then the other one, i dont go with it smile


My System:
Intel Core 2 Duo CPU P8400 @ 2.26 GHz
4 GB Ram
NVIDIA GeForce 9600M GT
32 Bit Windows Vista
***********************************
Gamestudio Pro 7.50 / WED V6.875