Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

Camera

$
0
0
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:

Code:

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);

Code:

forward Unstuck(playerid);
public Unstuck(playerid)
{
        TogglePlayerSpectating(playerid, 0);
              SetCameraBehindPlayer(playerid);
        return 1;
}

+REP for a guy who find the solution.

Viewing all articles
Browse latest Browse all 18226

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>