05.04.2010, 15:09
Quote:
Originally Posted by Babul
maybe that few commands will help you - the Radius R is set too high at 10, 4 should do fine for the skin selecion if you want the camera close to the character.
Код:
new Float:X,Float:Y,Float:Z,Float:A,Float:R=10; GetPlayerPos(playerid,X,Y,Z); GetPlayerFacingAngle(playerid,A); new Float:CX,Float:CY,Float:CZ; CX=X+(R*floatsin(-A,degrees)); CY=Y+(R*floatcos(-A,degrees)); CZ=Z+1; SetPlayerCameraPos(playerid,CX,CY,CZ); SetPlayerCameraLookAt(playerid,X,Y,Z); |