So why does this script doesnt work?
Its suposed that the player jumps when it touches the jump spring, but, nothing happens, and no error messages are given...



action roller
{
PLAYER=me;
player.enable_scan = on;// this makes sure the player can be scanned by
[Walking script...]
}



function jumpspringfunc
{player.enable_scan = on;// this makes sure the player can be scanned by othersmy.blue = 255;

if ((EVENT_TYPE == EVENT_ENTITY)&&(YOU == PLAYER))
{
result = vec_dist(my.x,player.x);

if(result <= 1)
{
phent_addcentralforce(PLAYER,vector(my.skill1*COS(my.pan),my.skill1*SIN(my.pan),my.skill1*TAN(my.tilt)))*time;
}
}
}


action mola
{
my.event = jumpspringfunc;
temp.x = 120;
temp.y = 120;
temp.z = 300;
scan_entity(my.x,temp);
}