InterpolateCameraPos and SetPlayerPosFindZ
#1

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
Reply
#2

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().
Reply
#3

First :

Perhaps put it on OnPlayerRequestClass instead of OnPlayerConnect.
Reply
#4

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

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)