Hi... ich versuche ein Jump-pad wie zb in Quake zu erstellen...

Dafür habe ich einen Code hier aus dem Forum geändert aber leider tut sich nichts... frown





var jump_once;//var to make sure we only jump one time

function jumppad ()
{
if(jump_once){return;}//if we are jumping
jump_once = 1;//now we are jumping
var jump_force = 500;
var slow_down = .1;
while(jump_force > 1)//while we have some jump force left
{
c_move(my,vector(0,0,jump_force*time_step),nullvector,0);//up we go
jump_force -= slow_down;
slow_down += 1;//adjust this number to slow down this vaule
wait(1);
}
jump_once = 0;
return;
}


action jumppad()
{
my.emask |= ENABLE_IMPACT;
my.event = jumppad;
}

Last edited by Kapu; 03/24/09 20:58.

when it´s done