12.12.2011, 07:41
Hi all
I have a problem, how can I get the rotation of checkpoint?
I saw something like that in this topic
https://sampforum.blast.hk/showthread.php?tid=116622
how he said
I have this
So I want to calculate how to get rotation of this cp so I can set that rot on my object?
I have a problem, how can I get the rotation of checkpoint?
I saw something like that in this topic
https://sampforum.blast.hk/showthread.php?tid=116622
how he said
Quote:
@Trooper[Y] I use SetObjectRot.With Attach,object too laggy.Iґm tested with many solutions and with SetObjectRot is the best. |
pawn Код:
SetPlayerCheckpoint(playerid, 1215.3896,-1844.5940,13.3828, 4.0);
CurrentPlayerCP[playerid] = 1;
DS_Arrow[playerid] = CreateObject(1318,20.20000076,-502.79998779,8.50000000,0.00000000,90.00000000,0.00000000);
AttachObjectToPlayer(DS_Arrow[playerid], playerid, 0, 0, 1, 0, 90, 2);
SetObjectRot(DS_Arrow[playerid], 1215.3896, -1844.5940, 13.3828);