action ball
{
var ball_move[3];
var ball_gravity;
wait(1);
c_setminmax(me);
while(1)
{
ball_move.x = (key_d - key_a) * 5 * time;
if(trace_hit)
{
ball_gravity = 0;
}
else
{
ball_gravity = -5;
}
c_move(me,ball_move.x,vector(0,0,ball_gravity*time),glide | ignore_passable);
wait(1);
}
}
action platform
{
wait(1);
c_setminmax(me);
}