Camera
#1

I use InterpolateCameraPos / LookAt, but when the timer is called this Interpolate camera position does not remove. And whenever i move my mouse to any way camera will go behind the player. I won't spawn player, I just want him to be there when he used cmd in isplayerinrangeofpoint.

Example:

Код:
CMD:camera(playerid)
{
    InterpolateCameraPos(playerid, 221.893768, 1822.836059, 11.279774, 220.261932, 1822.938842, 10.925539, 2000);
				InterpolateCameraLookAt(playerid, 217.278533, 1823.135986, 9.379850, 219.826156, 1822.940917, 5.944565, 3000);
SetTimerEx("Unstuck", 2000, false, "i", playerid);
Код:
forward Unstuck(playerid);
public Unstuck(playerid)
{
	TogglePlayerSpectating(playerid, 0);
              SetCameraBehindPlayer(playerid);
	return 1;
}
+REP for a guy who find the solution.
Reply


Messages In This Thread
Camera - by Hunud - 16.01.2018, 17:12
Re: Camera - by Daveosss - 16.01.2018, 17:20
Re: Camera - by Hunud - 16.01.2018, 17:24
Re: Camera - by Daveosss - 16.01.2018, 17:35
Re: Camera - by Hunud - 16.01.2018, 18:02
Re: Camera - by MP2 - 17.01.2018, 07:33

Forum Jump:


Users browsing this thread: 3 Guest(s)