24.08.2011, 09:54
I'm having problem with this function, while others don't.
I dunno if i'm doing wrong, the problem is when i click KEY_FIRE, SetCameraBehindPlayer didn't do anything except for the timer and gametext4player.
EDIT:
Continuation... SetCameraBehindPlayer don't function to go at player's back, it stays on its camera position (SetPlayerCameraPos and SetPlayerCameraLookAt).
pawn Code:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(PRESSED(KEY_FIRE))
{
if(dOnline[playerid])
{
GameTextForPlayer(playerid, "~g~ETA 5 Seconds", 2000, 5);
SetCameraBehindPlayer(playerid);
SetTimer("Execute", 5000, false);
}
}
return 1;
}
EDIT:
Continuation... SetCameraBehindPlayer don't function to go at player's back, it stays on its camera position (SetPlayerCameraPos and SetPlayerCameraLookAt).