this code must after when move on impact to wall must be remove ,but not work
function main{
level_load("test.wmb");
fps_max=100;
}
function remove_func{
ent_remove(me);
}
function move_func{
while(1){
wait(1);
ent_move(vector(-10,0,0),nullvector);
}
}
function ctrl_func{
my.enable_impact=on;
my.event=remove_func;
move_func();
}
action block1_act{
ent_create("plan1.mdl",my.pos,ctrl_func);
}