Сообщение от
Seregamil
И? Все равно не обновляет координаты...
PHP код:
const Float:CAM_DISTANCE = 5.0;
new Float:x, Float:y, Float:z;
GetPlayerPos(killerid, x, y, z);
new Float:killer_facing_angle;
GetPlayerFacingAngle(killerid, killer_facing_angle);
new Float:cam_pos_x = x+CAM_DISTANCE*floatsin(-killer_facing_angle, degrees);
new Float:cam_pos_y = y+CAM_DISTANCE*floatcos(-killer_facing_angle, degrees);
InterpolateCameraPos(playerid, cam_pos_x, cam_pos_y, z, cam_pos_x, cam_pos_y, z, 10000, CAMERA_MOVE);
InterpolateCameraLookAt(playerid, x, y, z, x, y, z, 10000, CAMERA_MOVE);