gate problem
#1

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
Reply
#2

would like some help....
seems like nobody helps
Reply
#3

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
Reply
#4

oh, finally found out how to make gates

is there a way to make it so the one door isnt tilted?
Reply
#5

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);
Reply
#6

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)