Object Pos Help
#1

I want to be able to create an object in front of me and no matter what angle I'm facing the object will be going strait and not sideways. I got some images to explain.

When I create an object the object always spawns in the same angle. Like this..



But I want it to spawn like this..



Even if I'm facing North, South etc. How can I do that?

Thanks in advance for any help
Reply
#2

use
Код:
new Float:pz, Flot:x, Float:y, Float:z;
GetPlayerFacingAngle(playerid, pz)
GetPlayerPos(playerid, x, y, z);
CreateObject(theID, x, y, z, 0.00, 0.00, pz);
or just add the new Floatz and the pz at the CreateObject of your script
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)