03.01.2019, 11:29
(
Последний раз редактировалось aKnoxx; 03.01.2019 в 18:15.
)
Say I want to make a cmd to put an object IN FRONT of a player. Or spawn a vehicle IN FRONT of a player. How do I do that?
When I do it like this:
GetPlayerPos(playerid, x, y, z);
And then do
x +2, y, z
It spawns it +2 x. And then when I do +3 y, it spawns it +3 y, ect. I can't figure out how to make it spawn in front of me. I'd assume it has something to do with math and your facing angle but I can't figure out how to do it. How can I do something like that?
When I do it like this:
GetPlayerPos(playerid, x, y, z);
And then do
x +2, y, z
It spawns it +2 x. And then when I do +3 y, it spawns it +3 y, ect. I can't figure out how to make it spawn in front of me. I'd assume it has something to do with math and your facing angle but I can't figure out how to do it. How can I do something like that?

