FastDistance2D
Calculates the 2D distance in C land quicker than it can be done in Lua.
FastDistance2D(x1, y1, x2, y2) : distance
Example
Checks the 2D distance between the player and target.
local x1, y1, z1 = ObjectPosition('player')local x2, y2, z2 = ObjectPosition('target')local dist = FastDistance2D(x1, y1, x2, y2)