29.07.2010, 22:20
LOL too slow xPPP
Now back on topic: You would move the 1st gate somewhere else in your script, then do this:
It will do that until you kill the timer.
Now back on topic: You would move the 1st gate somewhere else in your script, then do this:
pawn Код:
public OnObjectMoved(playerid,objectid)
{
if(objectid==gate1 || objectid==gate2)
{
SetTimerEx("move",20000,1,"i",objectid);
}
return 1;
}
forward move(objectid);
public move(objectid)
{
if(objectid==gate1)
{
MoveObject(gate2,blah blah blah);
}
else if(objectid=gate2)
{
MoveObject(gate1, blah blah blah);
}
return 1;
}