$ 0 0 I think you need to explicitly specify the type when you declare an uninitialized variable: var Distance : float;