I have tested the code as given by alibaba it does work , however it does only work when the rocket reaches the destination target , it does not account
for impacts in route and maby thats what the op
finds as a problem during testing ?

secondly , the rockets impact way before the target area
(possibly not that important for now)

if thats fixed maby it would work ..

Code:
void Barrel()
{
	//Just a placeholder
	set(my,FLAG8);
	my.skill1=100;
	while(my.skill1>0)
	{
		VECTOR pos;
		vec_set(pos,my.x);
		vec_to_screen(pos,camera);
		draw_text(str_printf(NULL,"%i",(long)my.z),pos.x,pos.y,COLOR_WHITE);
		wait(1);
	}
	safe_remove(me);
}



and yes you have to keep an eye on the height in alibab's example,i have include a text draw call in this function so
if you test you should see that any barrels too high would not
be detected , upon creation of those barrels it seems the
height is around 17 or 18..

Last edited by Wjbender; 09/01/14 14:03.

Compulsive compiler