PDA

View Full Version : How to set that object will usually move..


davidstyle1125
26/12/2014, 07:31 PM
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.

JohnBlade
26/12/2014, 10:48 PM
try this tutorial http://wiki.sa-mp.com/wiki/MoveObject

davidstyle1125
27/12/2014, 08:42 AM
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.

HY
27/12/2014, 08:45 AM
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():

SetTimer(''Move'', 100, true);

I don't have '', so replace them with correct symbol.

And then create the public:

forward Move();
public Move()
{
MoveObject(...................);
return 1;
}

MoveObject. (http://wiki.sa-mp.com/wiki/MoveObject)