SA-MP Forums Archive
Toll Booth gates - 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: Toll Booth gates (/showthread.php?tid=372205)



Toll Booth gates - Zach7 - 25.08.2012

okay I am making a command for gate to go up but what do i change so I it's open position is at a 90 degree angle

pawn Код:
GetDynamicObjectPos(TBG, Positions[1][0], Positions[1][1], Positions[1][2]);
  GetDynamicObjectPos(TBG2, Positions[4][0], Positions[4][1], Positions[4][2]);



Re: Toll Booth gates - BigAl - 25.08.2012

There's about a million tutorials on this, just go have a look at some tutorials in the tutorial section


Re: Toll Booth gates - [Y]P90 - 25.08.2012

I would recommend using the "MoveDynamicObject" Function given that you have the "Dynamic Objects".
If you were simply using the "AddStaticObject" or "CreateObject" you would have to use the "MoveObject" function.
Here is a link to the wiki: https://sampwiki.blast.hk/wiki/MoveObject