19.10.2011, 09:01
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:
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;
}