Talk:IsElementInRange

From Multi Theft Auto: Wiki

Consider replacing it with

function isElementInRange(theElement, x,y,z,range)
 return getDistanceBetweenPoints3D(getElementPosition(target_element), x,y,z)<=range
end

Which is shorter, cleaner and probably faster. --Wielebny 13:31, 4 August 2012 (UTC)