SA-MP Forums Archive
Moving Object - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Moving Object (/showthread.php?tid=518088)



Moving Object - Tuntun - 08.06.2014

my codes:
Код:
public go()
{
     // ferry
    SetTimer("go",10000,0);
    MoveObject(ferry,4352.35547, -1945.35327, -11.71894,20.0);
    MoveObject(ferry1,4352.35547, -1945.35327, -11.71894,20.0);
    MoveObject(ferry2,4352.35547, -1945.35327, -11.71894,20.0);
    MoveObject(ferry3,4352.35547, -1945.35327, -11.71894,20.0);
    MoveObject(ferry4,4352.35547, -1945.35327, -11.71894,20.0);
    MoveObject(ferry5,4352.35547, -1945.35327, -11.71894,20.0);
    MoveObject(ferry6,4352.35547, -1945.35327, -11.71894,20.0);
    ferry = CreateObject(10771, 3058.71655, -1963.72046, -1.40431,   0.00000, 0.00000, 359.59393);
    ferry1 = CreateObject(4594, 3065.78198, -1965.16016, -11.98790,   0.00000, 0.00000, 269.08380);
    ferry2 = CreateObject(4594, 3094.81348, -1965.23743, -11.98790,   0.00000, 0.00000, 269.08380);
    ferry3 = CreateObject(4594, 3107.49756, -1965.39148, -11.98790,   0.00000, 0.00000, 269.08380);
    ferry4 = CreateObject(4594, 3021.63892, -1959.92749, -11.98790,   0.00000, 0.00000, 269.08380);
    ferry5 = CreateObject(4594, 2986.89233, -1963.24744, -11.98790,   0.00000, 0.00000, 269.08380);
    ferry6 = CreateObject(10829, 3089.99243, -1972.74109, 10.05458,   0.00000, 0.00000, 269.29483);
    SendClientMessageToAll(-1,"ferry is going to island");
	return 1;
}
there is a bug... I can't see the objects / sendclientmessage in the server.

Also i want something like this: this ferry will go after staying 2 mins... and it should go slow... and it will come back after 2 mins.

and the codes:
Код:
forward go();
Код:
new ferry,ferry1,ferry2,ferry3,ferry4,ferry5,ferry6;



Re: Moving Object - Tuntun - 08.06.2014

Anyone help me?..


Re: Moving Object - ball - 08.06.2014

1. You have to create object first and then move objects
2. You don't run go() callback - its never called. You have to call it somewhere


Re: Moving Object - Tuntun - 08.06.2014

Also i want something like this: this ferry will go after staying 2 mins... and it should go slow... and it will come back after 2 mins.



Re: Moving Object - Tuntun - 08.06.2014

Anyone help? How to make it slower and how to make something like : it will come back after 2mins?