WorldToScreen

Returns the screen position of a world coordinate.

WorldToScreen(x, y, z) : x, y

The x and y values are values between -1 and 1, (0,0) being the center of the screen, (-1,1) being the bottom left.

Example

Sets the mouseover unit to the target.

local x, y = WorldToScreen(x, y, z)