SA-MP Forums Archive
MoveObject - 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: MoveObject (/showthread.php?tid=456428)



MoveObject - AlmirDelic - 05.08.2013

Hello,

How do i make my ramp with images slowly closes?
My problem is that how you do it quickly closes.
How do i do that slowly rotates?
Can someone give me the performed command?

Code:

Open Ramp -
Код:
CreateDynamicObject(968, 828.07813, -1309.59290, 13.45290,   0.00000, 0.00000, 0.00000);
Close Ramp -
Код:
CreateDynamicObject(968, 828.07813, -1309.59290, 13.45290,   0.00000, 90.00000, 0.00000);
Pictures:
http://www.zaslike.com/viewer.php?fi...y0vzxskwq8.png

Not doing fine language, sorry [B]


Re: MoveObject - AlmirDelic - 06.08.2013

Help?


Re: MoveObject - Amel_PAtomAXx - 06.08.2013

SetObjectRot


Re: MoveObject - AlmirDelic - 06.08.2013

? ?


Re: MoveObject - kamzaf - 06.08.2013

https://sampforum.blast.hk/showthread.php?tid=151452


Re: MoveObject - AlmirDelic - 06.08.2013

Does not work


Re: MoveObject - Psymetrix - 06.08.2013

pawn Код:
new gGate;

// create the object at the open position
gGate = CreateDynamicObject(968, 828.07813, -1309.59290, 13.45290,   0.00000, 0.00000, 0.00000);

// move the gate to the closed position.
// speed is set to 0.01 so that the gate will close slowly.
// when using MoveObject with rotation only, the object will jump rather than move.
// to fix this, simply add a small movement to the Z position.
// this will be unnoticeable to players but will allow smooth movement.
MoveDynamicObject(gGate, 828.07813, -1309.59290, /*13.45290*/ 13.43290, 0.01, 0.00000, 90.00000, 0.00000);

// move the gate back to the open position.
MoveDynamicObject(gGate, 828.07813, -1309.59290, 13.45290, 0.01, 0.00000, 0.00000, 0.00000);
I'm not very good at explaining things so I hope you can understand what I mean.


Re: MoveObject - Jefff - 06.08.2013

https://sampforum.blast.hk/showthread.php?tid=456245 works for me but with CreateObject and MoveObject check
pawn Код:
Streamer_UpdateEx(playerid, Float:x, Float:y, Float:z, worldid = -1, interiorid = -1);
or
pawn Код:
Streamer_Update(playerid);



Re: MoveObject - AlmirDelic - 06.08.2013

Thanks to everyone and especially Psymetrix
Thanksssssssss