Is this possible?
#5

Yes, you would need an very fast timer or you use OnPlayerUpdate
pawn Код:
public OnPlayerUpdate(playerid) {
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
        new
            Float: X,
            Float: Y,
            Float: Z,
            Float: A;
        GetPlayerPos(playerid, X, Y, Z);
        GetPlayerFacingAngle(playerid, A);
        SetPlayerCameraPos(playerid, X, Y, Z + 20);
        SetPlayerCameraLookAt(playerid,
            X - (floatsin(A, degrees) * 5),
            Y + (floatcos(A, degrees) * 5),
        Z);
    }
    return 1;
}
Reply


Messages In This Thread
Is this possible? - by Kasis - 13.01.2012, 16:24
Re: Is this possible? - by kizla - 13.01.2012, 16:30
Re: Is this possible? - by Kasis - 13.01.2012, 17:30
Re: Is this possible? - by Kasis - 14.01.2012, 12:24
AW: Is this possible? - by Nero_3D - 14.01.2012, 12:36

Forum Jump:


Users browsing this thread: 3 Guest(s)