06.09.2012, 21:14
Thanks for you reply, I tried this and it worked for a test but its hard to calculate all the times.
Now I have 1 object that is going to point B and is coming back to point A.
But its quite hard....
This is my test I made:
Now I have 1 object that is going to point B and is coming back to point A.
But its quite hard....
This is my test I made:
pawn Код:
forward objectgo();
forward objectback();
new Obj1;
public OnGameModeInit()
{
Obj1 = CreateObject(8661, 2935.39990234, -1782.09997559, 10.69999981, 0.00000000, 0.00000000, 350.49682617);
CreateDynamicObject(8661,2896.19995117, -1775.50000000, 10.69999981, 0.00000000, 0.00000000, 350.50000000);
CreateDynamicObject(8661,3014.10009766, -1795.30004883, 10.69999981, 0.00000000, 0.00000000, 350.49682617);
CreateDynamicObject(8661,3042.80004883, -1801.09997559, 10.69999981, 0.00000000, 0.00000000, 260.49679565);
SetTimer("objectgo", 60000, true);
}
public objectgo()
{
print("SERVER INFO: Object started moving to point B");
SetTimer("objectback", 20000, false);
MoveObject(Obj1, 2975.60009766,-1788.90002441,10.69999981, 2.5, 0.00000000,0.00000000,350.49682617);
}
public objectback()
{
print("SERVER INFO: Object is going back to point A");
MoveObject(Obj1, 2935.39990234, -1782.09997559, 10.69999981, 2.5, 0.00000000, 0.00000000, 350.49682617);
}