SA-MP Forums Archive
How to make a barrier opens like this - 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: How to make a barrier opens like this (/showthread.php?tid=489651)



How to make a barrier opens like this - iOxide - 23.01.2014

Hi,

I have seen this kind of barrier on many servers. I want to make it open like this



I tried it with MoveObject, added the closed and opened barrier coords but it is not opening like i wanted. The opening style is sudden, without the motions i wanted. Any idea?


Re: How to make a barrier opens like this - Ace155 - 23.01.2014

MoveObject(objectid, Float:X, Float:Y, Float:Z, Float:Speed, Float:RotX = -1000.0, Float:RotY = -1000.0, Float:RotZ = -1000.0)
Try changing the Speed to something like 10 or 20


Re : How to make a barrier opens like this - anou1 - 23.01.2014

If it's a rotation movement I think that with the 0.3x we still can't move it with speed.
It just moves without motions.


Re: How to make a barrier opens like this - JessThompson - 23.01.2014

so you want it on a rotate axis i suggest you go and get the rotate inc

here is a link https://sampforum.blast.hk/showthread.php?tid=75493


Re: How to make a barrier opens like this - Vince - 23.01.2014

Quote:
Originally Posted by JessThompson
Посмотреть сообщение
so you want it on a rotate axis i suggest you go and get the rotate inc

here is a link https://sampforum.blast.hk/showthread.php?tid=75493
That is completely obsolete. MoveObject works just fine.

The problem really is that in order for MoveObject to register correctly, the object should actually be moved. Move the barrier up by about 0.05 units when opening it. Move it 0.05 units down when closing it. A speed of 0.05 seems to be appropriate. Maybe a little faster.


Re : How to make a barrier opens like this - anou1 - 23.01.2014

@Vince I tried this one time, It didnt work, the object was moving slowly but the rotation was moving immediatly


Maybe I did it wrong but are you sure that moving rotation slowly is possible ?


Re: How to make a barrier opens like this - iOxide - 23.01.2014

Yeah, adding the speed to 0.05 worked just fine. Thanks for the hep.