SA-MP Forums Archive
InterpolateCameraPos and SetPlayerPosFindZ - 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: InterpolateCameraPos and SetPlayerPosFindZ (/showthread.php?tid=385052)



InterpolateCameraPos and SetPlayerPosFindZ - Timmeyable - 14.10.2012

Hi guys,

i have two questions:

First:

How to use InterpolateCameraPos?
I placed it in OnPlayerConnect but it doesnt do anything

pawn Код:
InterpolateCameraLookAt(playerid, 2646.9263, 290.3054, 112.1324, 2646.9263, 290.3054, 112.1324, 10000, CAMERA_MOVE);
InterpolateCameraPos(playerid, 1158.5448, 1621.4269, 82.5288, 2646.9263, 290.3054, 112.1324, 10000, CAMERA_MOVE);
Second:

SetPlayerPosFindZ dosent work. Every time i use this the player is under the ground.
But he should ontop of the ground. What can i do?

Hope you can help me

Tim


Re: InterpolateCameraPos and SetPlayerPosFindZ - Babul - 14.10.2012

first: when a player connects, he is not spawned yet. try to make a quick command where the camera gets moved, and another command to set the camera back to the player.
second: if you see the player falling down each time, and you are seeing a bit of the map, then try to add a constant value like Float:ZPosition+2.0 to the returned value from SetPlayerPosFindZ().


Re: InterpolateCameraPos and SetPlayerPosFindZ - CmZxC - 14.10.2012

First :

Perhaps put it on OnPlayerRequestClass instead of OnPlayerConnect.


Re: InterpolateCameraPos and SetPlayerPosFindZ - Timmeyable - 14.10.2012

@Babul: I dont what you mean to the second question.
@CmZxC: But i want to use it under OnPlayerConnect. Other Idea?