Movable door goes sideways..
#1

I just put a movable door in my script for my fire department. It shows up fine but when i use the command /openchiefdoor the door goes up but rotates sideways..I'm wondering if I didnt put the cords in right or what...But i need help.. Thanks.
Reply
#2

Just double check your co-ordinates... you must of made a mistake with the rotation (X, Y, Z, ?, ?, ?)
Check what you have put in the spaces with '?'.
Reply
#3

Код:
if (strcmp("/openchiefgate", cmdtext, true, 5) == 0)
    	{
        if(IsPlayerInRangeOfPoint(playerid, 7.0, 1553.90002441,-2261.69995117,14.39999962))
        {
        MoveObject(s2gate2, 1553.90002441,-2261.69995117,18.20000076, 3.0);
        SendClientMessage(playerid, COLOR_RED, "You have opened the Battalion Chief Door.");
        }
        return 1;
    	}
        if (strcmp("/closechiefgate", cmdtext, true, 6) == 0)
    	{
        if(IsPlayerInRangeOfPoint(playerid, 7.0, 1553.90002441,-2261.69995117,14.39999962))
        {
        MoveObject(s2gate2, 1553.90002441,-2261.69995117,14.39999962 3.0);
        SendClientMessage(playerid, COLOR_RED, "You have closed the Battalion Chief Door.");
        }
        return 1;
    }
Theres my code...whats wrong with it?
Reply
#4

I need to see the s2gate2 = CreateObject part.

Sorry if I don't reply within a few hours, it's very late here and I may fall asleep on you :P
Reply
#5

Код:
s2gate2 = CreateObject(5856,1553.90002441,-2261.69995117,14.39999962,0.00000000,0.00000000,270.00000000)
Reply
#6

Fixed it. Thanks for your help.
Reply
#7

yeah... sorry, I should of looked at your code... I could have fixed it so much quicker if I had of looked at that... but I guess I got caught up in something.
Reply


Forum Jump:


Users browsing this thread: 5 Guest(s)