SetCameraBehindPlayer
#1

I'm having problem with this function, while others don't.

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;
}
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).
Reply


Messages In This Thread
SetCameraBehindPlayer - by Gazmull - 24.08.2011, 09:54
Re: SetCameraBehindPlayer - by antonio112 - 24.08.2011, 10:32
Re: SetCameraBehindPlayer - by Gazmull - 24.08.2011, 15:08

Forum Jump:


Users browsing this thread: 1 Guest(s)