LOOK on the end function action rocket_base
in the ..if mouse_right.. i thnk you should do the all thing
if mouse_right!=NULL ..&&...
after the ent_create give it a wait(1) for security..
And in lite C is it nullvector, i know i have to use NULL and not null.. because its case sensitive..
also this instruction seems to me be dangerouse:
function rocket_weg()
{
>>>> ent_remove(rock);
vec_set(camera.x,nullvector);
scan_base = 1;
b = 0;
}
function rocket_launch()
{
rock = ent_create("sphere.mdl",camera.x,NULL);
set(rock, INVISIBLE);
rock.emask |= (ENABLE_BLOCK | ENABLE_ENTITY);
rock.event = rocket_weg;
>>>> You create and then you delete.. perhaps there is some.. thing here causing error.
then you ask for the rock, but there is no while valid rock ! you removed..
while(rock)
Last edited by MMike; 07/11/10 22:57.