AttachCameraToObject (camera angle)
#1

Im trying to set different angles of the camera object, but the camera angle is still the same (45' i think). Is there any way to set custom camera angle while attaching it to a moving object? (The player state is SPECTATING)
pawn Код:
cam[playerid] = CreateObject(19300, 700.0000, -1302.0000, 100.0000, 0.0, 0.0, 90.0);
AttachCameraToObject(playerid, cam[playerid]);
MoveObject(cam[playerid], 1800.0000, -1302.0000, 100.0000, 10.0, 0.0, 0.0, 90.0);
FOUND THE SOLUTION with SetPlayerCameraLookAt, but im not sure its the most correct way. Any others?
Reply
#2

SetPlayerCameraPos
SetPlayerCameraLookAt
and you need a command for acction
GetPlayerCameraPos(playerid, x, y, z);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)