Jump to content

Davidovich

Members
  • Posts

    3
  • Joined

  • Last visited

Everything posted by Davidovich

  1. Hey Gamesnert, Thanks For The Reply. I did a alternative, maybe a bit simpler than yours, but isn't as effective as your method is. -.- (Mine can be ServerSide). function getTopPointRelativeOfElement(element,distance) local x, y, z = getElementPosition ( element ) local rx, ry, rz = getElementRotation ( element ) y = y - (distance * math.sin(math.rad(rx)) ) x = x + (distance * math.sin(math.rad(ry)) ) z = z + (distance * math.cos(math.rad(rx+ry)) ) return x,y,z end Man, Thanks alot for helping me by giving Ideas,Methods and Suggestions. (When I Got some free time, I will do some test with your method.) Thanks, Seeya
  2. I tried to make a race map and everything was going well till I started testing everyone spawns on the same spawn point (I choosed 30 diferents spawn points) what I did wrong?
  3. I need this function because I want to get the relative point in top of an element and If I change the (rotation) of this element to upside down,the point will be below. The Vehicle/Car = The Element Red Line = Distance The Circle(Ball)= return of the function (x,y,z) [b]function getTopPointRelativeOfElement(element,distance) local x, y, z = getElementPosition ( element ) local rx, ry, rz = getElementRotation ( element ) ... ... return x,y,z end [/b]
×
×
  • Create New...