Movable door goes sideways.. -
John_Baker - 04.12.2011
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.
Re: Movable door goes sideways.. -
Thresholdold - 04.12.2011
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 '?'.
Re: Movable door goes sideways.. -
John_Baker - 04.12.2011
Код:
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?
Re: Movable door goes sideways.. -
Thresholdold - 04.12.2011
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
Re: Movable door goes sideways.. -
John_Baker - 04.12.2011
Код:
s2gate2 = CreateObject(5856,1553.90002441,-2261.69995117,14.39999962,0.00000000,0.00000000,270.00000000)
Re: Movable door goes sideways.. -
John_Baker - 08.12.2011
Fixed it. Thanks for your help.
Re: Movable door goes sideways.. -
Thresholdold - 08.12.2011
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.