Hi,
I'm obviously missing a link from the trigger module to the ball module. Once the "impact" occurs I call the ball travel() and then that verifies impact with Code:
 if (event_type==event_impact) { etc. 



any ideas of what's missing or how to fix it?

here is the code:
Code:


//attached to the ball.mdl

action Ball_path
{
var counter =0;//used to count path pspn;


if( (event_type == event_impact) && (mouse_left==1) )
{
counter = 0;
temp.pan = 360;
temp.tilt = 180;
temp.z = 1000;
result = scan_path (my.x, temp);

if (result == 0)
{
return;
}

ent_waypoint(my._TARGET_X,1);

while (counter<24)
{
temp.x = my._TARGET_X - my.x;
temp.y = 0;
temp.z = my._TARGET_Z - my.z;
result = vec_to_angle(my_angle,temp);

if (result < 23)
{
ent_nextpoint (my._TARGET_X);
counter+=1;
}
c_move(my, vector(temp.x,0,temp.z), nullvector,ignore_passable);

wait(1);
}
score_basket();
}
}


//attaced to the invisible cude
action Trigger_Ball_path
{
my.enable_impact=on;
my.event= ball_Path;
}




"Supreme executive power derives from a mandate of the masses NOT some farcicle aquatic ceromony" Constitutional peasant skit "Monty Python and the Holy Grail"