How to set that object will usually move.. - 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: How to set that object will usually move.. (
/showthread.php?tid=552825)
How to set that object will usually move.. -
davidstyle1125 - 26.12.2014
Hello, I want to create some minigames for christmas, and i want to create some objects that they will move
non stop..
they will move left, and then right, back left and again right, you know.. like this claiming games.
Re: How to set that object will usually move.. -
JohnBlade - 26.12.2014
try this tutorial
https://sampwiki.blast.hk/wiki/MoveObject
Re: How to set that object will usually move.. -
davidstyle1125 - 27.12.2014
I don't want it to move with a command..
When players join the server.. I want that this boxes will move usually left-right..
for all the players.
Re: How to set that object will usually move.. -
HY - 27.12.2014
Well, I think you can set a timer at 100 ms wich it's setted to true and will move non-stop. For example under OnGameModeInit() or OnFilterScriptInit():
pawn Код:
SetTimer(''Move'', 100, true);
I don't have '', so replace them with correct symbol.
And then create the public:
pawn Код:
forward Move();
public Move()
{
MoveObject(...................);
return 1;
}
MoveObject.