MoveObject - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: MoveObject (
/showthread.php?tid=451259)
MoveObject -
iJumbo - 16.07.2013
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?
Re: MoveObject -
iJumbo - 18.07.2013
Bump (24Hr)
Re: MoveObject -
faff - 18.07.2013
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?
Re: MoveObject -
iJumbo - 18.07.2013
Im asking for
GetFacingForDestination function
o.O
Re: MoveObject -
Aerotactics - 18.07.2013
https://sampwiki.blast.hk/wiki/GetPlayerFacingAngle
If you want I'll write a demo...
Re: MoveObject -
iJumbo - 18.07.2013
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