Positioning gates from garage coordinates
#1

Hey.

I get a garage objects x, y, z coordinates and Z rotation. I want to place its gate accordingly....

I tried calculating it myself and failed, my code:
pawn Код:
ix = x - 3.0 * floatcos(angle,degrees);
        y = y + 3.0 * floatsin(angle,degrees);
note: z coordinate is not important.

So if someone could help me or atleast point me in the right direction i would be very happy.
Reply
#2

bump
Reply
#3

I dont get it ,you want to add a gate to a garage?
Reply
#4

Yes, but I want to be able to get coordinates for the gate while only knowing garages coordinates and it's z angle
Reply
#5

Ah...I was gonna suggest you add the object with MapEditor and then make an /open command.
Reply
#6

bump
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)