Help! Please! - 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: Help! Please! (
/showthread.php?tid=305412)
Help! Please! -
Sarra - 22.12.2011
Please help me!
How can I modificate the way that the gate moves in! i want to make it moves to the floor or something!
Re: Help! Please! -
Edvin - 22.12.2011
MoveObject!
https://sampwiki.blast.hk/wiki/MoveObject
Re: Help! Please! -
Thresholdold - 22.12.2011
Right so MoveObject works like this
pawn Код:
MoveObject(objectid, X, Y, Z, speed, Float:RotX, Float:RotY, Float:RotZ);
So whatever your Z is, just minus 10 from it.
Example:
pawn Код:
MoveObject(myobject, 120, 124, 15, 5.0, 0, 0, 180);
would become
pawn Код:
MoveObject(myobject, 120, 124, 5, 5.0, 0, 0, 180);
It basically depends how far above ground your object is, but if it is at ground level, -10 should do it.
EDIT: If you want to make it move straight down, DON'T CHANGE YOUR Y OR X!