SetTimer time fails
#1

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);
}
Above is a snippet of the code i have.

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
Reply
#2

why not make a variable? like
new moveobjectspeed = MoveObject(object, -2873.01269531,2585.49804688,271.29998779, OBJECTSPEED);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)