How to make object moving step by step?
#3

I'm not sure if what you mean is what im going to say but anyway.

You can create a variable that will store the "step" of the object.
Then you can use OnObjectMoved having a "switch" in it for each step and moving it to the next location.

Example:
pawn Код:
new ObjectStep = 1;

//OnGameModeInit
Create your object and then move it to the 1st location

public OnObjectMoved(objectid)
{
    if(objectid == YOUR_OBJECT)
    {
        switch(ObjectStep)
        {
                case 0: //Move Object to the 1st location
                case 1: //Move Object to the 2nd location
                case 2: //Move Object to the 3rd location
        }
        ObjectStep ++;
        if(ObjectStep > YOUR_LAST_STEP) ObjectStep = 0;
    }
    return 1;
}
Reply


Messages In This Thread
How to make object moving step by step? - by Artie_Scorpion - 19.10.2011, 08:38
Re: How to make object moving step by step? - by nilanjay - 19.10.2011, 08:40
Re: How to make object moving step by step? - by Dark_Kostas - 19.10.2011, 09:01
Re : How to make object moving step by step? - by mehdi-jumper - 19.10.2011, 10:10
Re: Re : How to make object moving step by step? - by Dark_Kostas - 19.10.2011, 10:16

Forum Jump:


Users browsing this thread: 1 Guest(s)