SA-MP Forums Archive
Move Object bug? +REP - 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)
+--- Thread: Move Object bug? +REP (/showthread.php?tid=329137)



Move Object bug? +REP - Gooday - 27.03.2012

Hello when i go in game the gates when moved rotate and moves...Then they wont go back at their old position anymore! Why=?

pawn Код:
CMD:bcsdopen(playerid, params[])
{
   MoveObject(bcsdgate1, -505.29980469,2600.39990234,54.29999924, 1);
   MoveObject(bcsdgate2, -505.29980469,2585.34008789,54.29999924, 1);
   SendClientMessage(playerid, COLOR_GOLD,"(INFO) BCSD Deposit's gate has been opened.");
      return 1;
}

//bcsdgate1 = CreateObject(989,-505.29998779,2595.19995117,54.29999924,0.00000000,0.00000000,16.00000000); //gate1
//bcsdgate2 = CreateObject(989,-505.29980469,2589.79980469,54.29999924,0.00000000,0.00000000,15.99609375); //gate2

CMD:bcsdclose(playerid, params[])
{
   MoveObject(bcsdgate1, -505.29998779,2595.19995117,54.29999924, 1);
   MoveObject(bcsdgate2, -505.29980469,2589.79980469,54.29999924, 1);
   SendClientMessage(playerid, COLOR_GOLD,"(INFO) BCSD Deposit's gate has been closed.");
      return 1;
}
+REP!


Re: Move Object bug? +REP - Daddy Yankee - 27.03.2012

Try to put the rotate angles too when you move it, see if it works. Example:
pawn Код:
MoveObject(bcsdgate1, -505.29980469,2600.39990234,54.29999924, 1, rX, rY, rZ);