Camera Movement
#1

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

http://pastebin.com/cUKWR7P7

Just change Points Playr and camera
Reply
#3

InterpolateCameraPos/LookAt.
Reply
#4

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

Really thank you guys!
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)