SA-MP Forums Archive
Camera Movement - 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: Camera Movement (/showthread.php?tid=426681)



Camera Movement - FalconeX - 29.03.2013

Do anyone know how to move a camera for a point to another point...


Re : Camera Movement - morocco - 29.03.2013

http://pastebin.com/cUKWR7P7

Just change Points Playr and camera


Re: Camera Movement - MP2 - 29.03.2013

InterpolateCameraPos/LookAt.


Re: Camera Movement - Krakuski - 29.03.2013

SetPlayerPos: https://sampwiki.blast.hk/wiki/SetPlayerPos
InterpolateCameraPos: https://sampwiki.blast.hk/wiki/InterpolateCameraPos
InterpolateCameraLookAt: https://sampwiki.blast.hk/wiki/InterpolateCameraLookAt

Example:

pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    SetPlayerPos(playerid, -2158.8599,-2442.0439,23.6250);
    InterpolateCameraPos(playerid, -2226.2224,-2097.9243,136.1685, -1951.7788,-2556.9270,109.9781, 20000, CAMERA_MOVE);
    InterpolateCameraLookAt(playerid, -2158.8599,-2442.0439,30.6250, -2158.8599,-2442.0439,30.6250, 20000, CAMERA_MOVE);
    return 1;
}
Hope I helped Ya


Re: Camera Movement - FalconeX - 29.03.2013

Really thank you guys!