Object Moving Too Fast
#6

Quote:
Originally Posted by IstuntmanI
Посмотреть сообщение
https://sampwiki.blast.hk/wiki/MoveObject



So you also have to move the object a bit:
pawn Код:
public Zones_Update()
{
    for(new i=0; i<MAX_PLAYERS; i++)
    {
        if (IsPlayerConnected(i))
        {

                if( IsPlayerInRangeOfPoint(i,7.0,1544.699951, -1630.829956, 13.040000) && PlayerInfo[i][pTeam] == TEAM_COPS)
                {
                    MoveDynamicObject(LSPDGate,1544.699951, -1630.829956, 13.040000,0.05, 0.0,0.0,90.0);
                    }
                    else
                    {
                    MoveDynamicObject(LSPDGate,1544.699951, -1630.829956 + 0.05, 13.040000,0.05, 0.0,90.0,90.0);
                }
        }
    }
    return 1;
}
^ this will move it in one second (not really sure about the order, if it doesn't work, try changing the "+ 0.05" from the second to first), because it moves 0.05 units, and moves with a speed of 0.05 units per second.
Brilliant. It works now. Never knew about this. Thanks!
Reply


Messages In This Thread
Object Moving Too Fast - by ProjectMan - 31.01.2015, 17:35
Re: Object Moving Too Fast - by zaibaslr2 - 31.01.2015, 18:14
Re: Object Moving Too Fast - by Schneider - 31.01.2015, 18:16
Re: Object Moving Too Fast - by ProjectMan - 31.01.2015, 23:41
Re: Object Moving Too Fast - by IstuntmanI - 31.01.2015, 23:45
Re: Object Moving Too Fast - by ProjectMan - 31.01.2015, 23:52
Re: Object Moving Too Fast - by Sime30 - 31.01.2015, 23:52
Re: Object Moving Too Fast - by Karolukas123 - 01.02.2015, 12:07

Forum Jump:


Users browsing this thread: 2 Guest(s)