Automatic 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Automatic Gates (
/showthread.php?tid=105763)
Automatic Gates -
Ritchie999 - 31.10.2009
i am trying to make automatic gates, i have seen some tutorials and read the wiki but i still don't understand how to get the co-ords for the object opened and closed, i am trying to make a gate to into the floor, so how would i get the co-ords for that and make it using PlayerToPoint so u gotta be near the gate?
Re: Automatic Gates -
shady91 - 31.10.2009
Quote:
Originally Posted by Ritchie999
i am trying to make automatic gates, i have seen some tutorials and read the wiki but i still don't understand how to get the co-ords for the object opened and closed, i am trying to make a gate to into the floor, so how would i get the co-ords for that and make it using PlayerToPoint so u gotta be near the gate?
|
just make a timer run every 2 seconds or somthing and then you isplayertopoint gate location then make it open the gate its quite simple if you want i can make an exsample.
Re: Automatic Gates -
Ritchie999 - 31.10.2009
Quote:
Originally Posted by Shady91
Quote:
Originally Posted by Ritchie999
i am trying to make automatic gates, i have seen some tutorials and read the wiki but i still don't understand how to get the co-ords for the object opened and closed, i am trying to make a gate to into the floor, so how would i get the co-ords for that and make it using PlayerToPoint so u gotta be near the gate?
|
just make a timer run every 2 seconds or somthing and then you isplayertopoint gate location then make it open the gate its quite simple if you want i can make an exsample.
|
example? please, if you would..... i made the gates last night and just done it the normal way by putting MoveObject in the command.. but when i type "/gclose" the gate moves downwards diagonal right, when it should be going straight up and it moves too fast, then when i type "gopen" it moves upwards diagonal left really really slow
Re: Automatic Gates -
Tigerbeast11 - 31.10.2009
I got a good idea! Use Mta and make 2 gates, one in closed pos, and one in open. Convert and there you go, you have your co-ords!
Note: use
www.convertffs.com to convert the co-ords!
Re: Automatic Gates -
Ritchie999 - 31.10.2009
Quote:
Originally Posted by Tigerbeast11
I got a good idea! Use Mta and make 2 gates, one in closed pos, and one in open. Convert and there you go, you have your co-ords!
Note: use www.convertffs.com to convert the co-ords!
|
thats exactly what i done, but like i said, the gates always move in a diagonal position when i try to open them or close then, they are supposed to go either down into the ground, or back up onto the ground in a straight line
Re: Automatic Gates -
Tigerbeast11 - 31.10.2009
That happened to me too
I think its some sort of bug. I did it again, and it worked then... :S
Re: Automatic Gates -
Ritchie999 - 31.10.2009
Quote:
Originally Posted by Tigerbeast11
That happened to me too
I think its some sort of bug. I did it again, and it worked then... :S
|
i cant seem to get it working at all. lol