Freeze Z coordinate
#1

Hello, I'm trying to freeze Z (height) and I want peoples opinion on the best way to do it. Currently I am doing it like this:

Код:
forward OneHalfSecond();
public OneHalfSecond()
{
	for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            if(gPlayer[i][Freeze_Z] == 1)
            {
                new Float:curX,
                    Float:curY,
                    Float:curZ;
                    
				GetPlayerPos(i, curX, curY, curZ);
                SetPlayerPos(i, curX, curY, gPlayer[i][Freeze_Z_Amount]);
			}
        }
    }
}
But obviously it's annoying having the screen jump every 1/2 second. Is there a way to prevent the player from falling at all or is this the only way?

Thanks.
Reply


Messages In This Thread
Freeze Z coordinate - by SA. - 10.11.2011, 12:51
Re: Freeze Z coordinate - by SA. - 10.11.2011, 17:11
Re: Freeze Z coordinate - by KoczkaHUN - 10.11.2011, 17:14
Re: Freeze Z coordinate - by AndreT - 10.11.2011, 17:23
Re: Freeze Z coordinate - by SA. - 10.11.2011, 17:39
Re: Freeze Z coordinate - by RyDeR` - 10.11.2011, 17:46
Re: Freeze Z coordinate - by Ensconce - 10.11.2011, 19:06
Re: Freeze Z coordinate - by SA. - 10.11.2011, 23:00
Re: Freeze Z coordinate - by RyDeR` - 10.11.2011, 23:06
Re: Freeze Z coordinate - by SA. - 10.11.2011, 23:12

Forum Jump:


Users browsing this thread: 1 Guest(s)