Any ideea how to teleport the car in front of me?

Dark.

Известный
1,745
778
get your coords, get your camera angle, then with some formula calculate what cords you have to increase to teleport car right in front of you.
like ur cords is x 0 y 0. You need to teleport car 10 cords in front of you. If you are watching 0° (north, x) add 10 to x cord.
if you're watching 45° north-east (xy) then add 5 to x and 5 to y
i'm bad at english and very bad at math and scripting, but I hope i somehow helped you
 

Constantin

Новичок
Автор темы
17
13
get your coords, get your camera angle, then with some formula calculate what cords you have to increase to teleport car right in front of you.
like ur cords is x 0 y 0. You need to teleport car 10 cords in front of you. If you are watching 0° (north, x) add 10 to x cord.
if you're watching 45° north-east (xy) then add 5 to x and 5 to y
i'm bad at english and very bad at math and scripting, but I hope i somehow helped you
Thanks brother