30.10.2010, 21:01
(
Последний раз редактировалось pater; 30.10.2010 в 21:18.
)
pawn Код:
public ObjectMove1()
{
MoveObject(object, -2853.04467773,2583.68579102,275.84753418, OBJECTSPEED);
SetTimer("ObjectMove2", (MoveObject(object, -2853.04467773,2583.68579102,275.84753418, OBJECTSPEED)), false);
}
public ObjectMove2()
{
MoveObject(object, -2873.01269531,2585.49804688,271.29998779, OBJECTSPEED);
SetTimer("ObjectMove3", (MoveObject(object, -2873.01269531,2585.49804688,271.29998779, OBJECTSPEED)), false);
}
What i want is that on the moment the object reaches one point, it moves again to another point and so on. But for some reason, it starts moving fine, but once it reaches the point, it stays there for a couple of seconds, and than continues. That is weird because i use a timer which calculates exactly the time it should take for the object to move from point a to point b using the defined speed. Is there another option to find out the right timing?
offcourse OBJECTSPEED, and 'object' are defined.
Best regards,
Pater