Calculate the distance to <entity>.goalpos. If the point is in <entity>.goalradius, the distance will be 0. the result is in pointStruct.distToGoal
Example:
PositionQuery_Filter_DistanceToGoal( queryResult, self )
* = mandatory