MoveObject
#1

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]
Reply
#2

Help?
Reply
#3

SetObjectRot
Reply
#4

? ?
Reply
#5

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

Does not work
Reply
#7

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.
Reply
#8

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);
Reply
#9

Thanks to everyone and especially Psymetrix
Thanksssssssss
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)