Well, i am not sure the problem its solved that way...
If you want try this code:

Code:


function ball_hit()
{
if(event_type == event_block)
{
vec_set(my.skill1, bounce);
}
}


action bouncingBall
{
my.enable_block = on;
my.event = ball_hit;
vec_set(my.skill1,vector(12*time_step,8*time_step,2*time_step));
while(1)
{
c_move(my,my.skill1,nullvector,glide);
wait(1);
}
}