Moving cameras problem.
#2

Try:
pawn Код:
new Float:camera_x = -2007.9738;
new Float:camera_y = -320.7323;
new Float:camera_z = 82.7880;

new Float:camera_x2 = -2002.2924;
new Float:camera_y2 = 1120.0116;
new Float:camera_z2 = 82.7880;

public OnPlayerConnect(playerid)
{
    SetPlayerCameraPos(playerid, camera_x - 5 * floatsin(-camera_x2, degrees), camera_y - 15 * floatcos(-camera_y2, degrees), camera_z + 6);
    SetPlayerCameraLookAt(playerid, camera_x2, camera_y2, camera_z2 + 0.5);
    return 1;
}
Or,
delete -
Код:
SetPlayerCameraPos(playerid, camera_x - 5 * floatsin(-camera_x2, degrees), camera_y - 15 * floatcos(-camera_y2, degrees), camera_z + 6);
Quote:

This is the code that the compiler will see and convert into the AMX file. This is a purely text based replacement. All macros are of the form:

Код:
#define <search string><space(s)><replacement>
https://sampforum.blast.hk/showthread.php?tid=166680
Reply


Messages In This Thread
Moving cameras problem[calculation help please] - by 0ne - 10.11.2010, 19:15
Re: Moving cameras problem. - by smeti - 10.11.2010, 19:41
Re: Moving cameras problem. - by 0ne - 10.11.2010, 19:55
Re: Moving cameras problem. - by 0ne - 11.11.2010, 16:42

Forum Jump:


Users browsing this thread: 2 Guest(s)