hi, im looking for way to get a point like 10units before my car.
i get function do to this- but it ignores Z position.
i need to make it work with any rotation.
function:
function getPositionRelatedToVehicle(theVeh, val)
local xx, yy, zz = getElementPosition(theVeh)
local rx, ry, rot = getElementRotation(theVeh)
local lx = xx + math.sin (math.rad(-rot)) * val
local ly = yy + math.cos (math.rad(-rot)) * val
return lx,ly
end