Here you go.
Code:
function remove_bullets()
{
error("bort");
ent_remove (my);
}
action bullet(){
me.scale_x = 0.5;
me.scale_y = 0.5;
me.scale_z = 0.5;
var tagged;
var start = 0;
my.emask |= (ENABLE_IMPACT|ENABLE_BLOCK);
my.event = remove_bullets;
while(true){
tagged = c_move(me,vector(4*speed,0,0),nullvector,NULL);
start += 1;
wait(1);
}
}
I want my bullet to be removed when it hits a wall.
or if it hits an entity. it chould act different on both. so thats why
i need to know how.