28.04.2009, 09:33
Hi all im new with scripting and im helping my friend with the server
but how to make moving objects?![Cry](images/smilies/cry.gif)
can anyone help me?![Sad](images/smilies/sad.gif)
thx alot :P
but how to make moving objects?
![Cry](images/smilies/cry.gif)
can anyone help me?
![Sad](images/smilies/sad.gif)
thx alot :P
MoveObject(IDobject, x, y, z, speed);
Originally Posted by John Cena
Code:
MoveObject(IDobject, x, y, z, speed); |
if (strcmp("/tele", cmdtext, true, 10) == 0)
{
MoveObject(980, 1961.7462, -2188.8318, 15.3203, 0.0000, 0.0000, 0.0000, 500.0);
return 1;
}
new Object = CreateObject(...);
MoveObject(Object, 1961.7462, -2188.8318, 15.3203, 5.0);
Originally Posted by JaTochNietDan
You need the ID of the object, not the model number. The easiest way is to store the ID of the object with a variable. Example:
pawn Code:
pawn Code:
|
Originally Posted by John Cena
|
Originally Posted by John Cena
Quote:
|
Originally Posted by luckie12
that dont work for me i have already trying but it dont work
|