[HELP] Ramp to open and close
#1

Hello everyone, I need help with the raising and lowering of the ramp, then the thing is that we can ramp opens on to a second father, but I like the gate slowly opens, however if you do it again as the gate will be opened for one second so I received a variety of methods to do that, because I've looked at some of the servers that ramps are opened slowly, has a variety of include, such as: https://sampforum.blast.hk/showthread.php?tid=151452 i https://sampforum.blast.hk/showthread.php?pid=3640256#pid3640256 do not know how or again to do the work off to follow their own way as they do or will not open now can what the problem is and where I'm wrong thanks in advance Greetings from Serbia
Reply
#2

Use MoveObject(objectid, Float:X, Float:Y, Float:Z, Float:Speed, Float:RotX = -1000.0, Float:RotY = -1000.0, Float:RotZ = -1000.0), assign a variable to the object and have a variable that is ObjectClosed, if its closed set it to 1 then when you open it set it to 0.

I dont really understand what you're trying to do, but I hope this helps.
Reply
#3

Everything I tried I want my ramp slowly opens as some servers and not to be opened immediately
Reply
#4

MoveObject includes a speed variable, this determine how fast the object will move to the destination.
Use low speeds for slow movements.
Play with the speed to find the optimal setting for you.

Also, read the note here: https://sampwiki.blast.hk/wiki/MoveObject
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)