Simulates the motion of a falling object with a given starting position and initial speed. If the projected trajectory encounters a material of the specified density, the simulation will stop and the function will return 'true'. Otherwise the function will return 'false'.
If the return value is 'true', the x and y coordinates of the point of interception will be stored in the specified variables for iX and iY, the horizontal and vertical speed at the time of interception in iXDir and iYDir respectively. See
references for details.
var iX = GetX(), iY = GetY(), iXDir = GetXDir(), iYDir = GetYDir();
if (GetAction()eq"Jump")
if (SimFlight(iX, iY, iXDir, iYDir))
if (iYDir >= 80)
Message("Oh oh, das wird ein harter Aufprall!", this());
If the calling clonk is situated in mid-air and it appears that he will hit the ground at high speed, he will call out.