gate problem - 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: gate problem (
/showthread.php?tid=70939)
gate problem -
killar456 - 28.03.2009
the gates work fine, incept there rotation isnt right, the rotation is fine for MTA map editor, but SAMP loads it so its going the wrong way
code:
http://pawn.pastebin.com/f2384da7c
heres what they end up looking like

and
Re: gate problem -
killar456 - 28.03.2009
would like some help....
seems like nobody helps
Re: gate problem -
Nero_3D - 28.03.2009
Try that, I just tried out imagination to get the right float numbers
pawn Код:
pddoor = CreateObject(2634,1577.327026,-1636.579590,13.707990,1.570796,0.0,90.0);
pdgate = CreateObject(987,1547.012207,-1621.757080,12.332813,1.570796,0.0,270.0);
But I can say for sure if you want to change the rotation you need to change the last argument
Re: gate problem -
killar456 - 28.03.2009
oh, finally found out how to make gates
is there a way to make it so the one door isnt tilted?
Re: gate problem -
Nero_3D - 29.03.2009
set the x rotation to 0.0 not 1.570796 like you had
pawn Код:
pddoor = CreateObject(2634,1577.327026,-1636.579590,13.707990,0.0,0.0,90.0);
Re: gate problem -
borg245 - 31.03.2009
Quote:
Originally Posted by ♣ ⓐⓢⓢ
set the x rotation to 0.0 not 1.570796 like you had
pawn Код:
pddoor = CreateObject(2634,1577.327026,-1636.579590,13.707990,0.0,0.0,90.0);
|
Like what he said,
Imagine you are in a circle.
the rotation which is at the end of the code will determine the tilting of the object.
You can use from 0 < 300
usually use 90 degrees or 180 degrees or 270 degrees to fix your errors