MoveObject
#1

How i can detect RotZ for facing an object where is moving at?


Like

pawn Код:
MoveObject(objectid,X,Y,Z);
Facing = GetFacingForDestination(objectid,X,Y,Z);
SetObjectRot( objectid, 0.0, 0.0, Facing );
something like that is possible?
Reply
#2

Bump (24Hr)
Reply
#3

pawn Код:
new Float:x, Float:y, Float:z;
new Float:x2, Float:y2, Float:z2;

GetPlayerPos(playerid, x,y,z);
MoveObject(objectid,x,y,z);
Facing = GetFacingForDestination(objectid,x2,y2,z2);
SetObjectRot( objectid, 0.0, 0.0, z2);

Something like this?
Reply
#4

Im asking for

GetFacingForDestination function

o.O
Reply
#5

https://sampwiki.blast.hk/wiki/GetPlayerFacingAngle

If you want I'll write a demo...
Reply
#6

I dont want get the player facing angle and set to object..

i want get the zangle of the new position of the object so the object can face the position and move
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)