Keep Doing it
#4

I quess in this case it's better to use OnObjectMoved callback instead of timer, kinda:
pawn Код:
// gObj - global var which stores objectid
// bool:gState - global var which stores current state of the object (false = 'left', true = 'right')
public OnObjectMoved(objectid)
{
    if(objectid == gObj)
    {
        if(gState)
        {
            // Move object to the 'left' here  
            gState = false;          
        }
        else
        {
            // Move object to the 'right' here
            gState = true;
        }
    }
    return 1;
}
Reply


Messages In This Thread
Keep Doing it - by RowdyrideR - 18.08.2011, 14:47
Re: Keep Doing it - by Wesley221 - 18.08.2011, 14:49
Re: Keep Doing it - by RowdyrideR - 18.08.2011, 14:52
Re: Keep Doing it - by Norck - 18.08.2011, 15:23

Forum Jump:


Users browsing this thread: 1 Guest(s)