Looking for fall damage tutorial

To expand on this for damage depending on range decide max distance for death and minimum damage for say low damage and bra he it first for => death distance and if false you scale it so say 5000 units is hurt and 20000 is death use a scaler to make that between .01-.99 and multiple your Max allowed health to get the scaled damage float.