Announcement

Collapse
No announcement yet.

Function to define distance in direction

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Function to define distance in direction

    As the title suggests, we're in need of a function that allows you to define distance in whatever direction you define.
    So for example.

    Code:
    x, y, z = GetPositionFromPlayer(player, direction, distance)
    obj = createObject(id, x, y, z)
    with this I could spawn something in front of me, behind me ect.

    #2
    You have the forward, right, left, behind player vector. You can just rotate it, and you have your point. No need to add function for this.

    Comment

    Working...
    X