Hi.
I have a code, but the code is very wrong. Can somebody correct it?
code:
dxDrawImage(getScreenFromWorldPosition(getPedBonePosition(headShowingElements[i][1], 8)) - 65 * interpolateBetween(1, 1, 0, 0.15, 0, 0, getDistanceBetweenPoints3D(getCameraMatrix()) / maxDistance, "OutQuad") / 2, getScreenFromWorldPosition(getPedBonePosition(headShowingElements[i][1], 8)) - 65 * interpolateBetween(1, 1, 0, 0.15, 0, 0, getDistanceBetweenPoints3D(getCameraMatrix()) / maxDistance, "OutQuad") / 2, 65 * interpolateBetween(1, 1, 0, 0.15, 0, 0, getDistanceBetweenPoints3D(getCameraMatrix()) / maxDistance, "OutQuad"), 65 * interpolateBetween(1, 1, 0, 0.15, 0, 0, getDistanceBetweenPoints3D(getCameraMatrix()) / maxDistance, "OutQuad"), "files/" .. headShowingElements[i][3] .. ".png", 0, 0, 0, tocolor(255, 255, 255, 255))
What i want: (With going up and down anim from the head)
http://imgur.com/a/aHeHL
What this code do (why?):
http://imgur.com/a/X78mx