I have a problem again. I want the fireball to have a guided missle ability and then make the goblin lose hp which is actually a local variable. I guess I could use something like this code here for both the fireball and goblin but what would I use for """something""" ? Also the goblins are models I placed in WED and I assigned the actions to them if that matters.

Code:
void fireball()
{

while(1)
    {
        c_move(me,vector(50 * time_step,0,0),nullvector,GLIDE);
        if (vec_dist(my.x,"""something""".x) <= 50)
        {
            vec_set(temp.x,"""something""".x);
            vec_sub(temp.x,my.x);
            vec_to_angle(my.pan,temp);
        }
    }
}




boolean my.awesomeness = so true;