SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 27/03/2012, 11:47 AM   #1
Gooday
Huge Clucker
 
Gooday's Avatar
 
Join Date: Nov 2011
Location: Fort Carson
Posts: 489
Reputation: 40
Default Move Object bug? +REP

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 Code:
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!
Gooday is offline   Reply With Quote
Old 27/03/2012, 01:56 PM   #2
Daddy Yankee
Big Clucker
 
Daddy Yankee's Avatar
 
Join Date: Nov 2010
Location: Romania
Posts: 108
Reputation: 27
Default Re: Move Object bug? +REP

Try to put the rotate angles too when you move it, see if it works. Example:
pawn Code:
MoveObject(bcsdgate1, -505.29980469,2600.39990234,54.29999924, 1, rX, rY, rZ);
__________________
Daddy Yankee is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
move object wiht command then auto move back slymatt Help Archive 8 25/07/2011 01:27 AM
Cant move object :( BlackWolf120 Help Archive 0 02/01/2011 03:31 PM
move object DennisArenz Help Archive 2 02/05/2010 08:40 AM
Move Object - need ! Johny_Rocker Help Archive 7 31/03/2010 03:53 PM
Move object... [H]InVion_ Help Archive 6 17/02/2009 08:12 AM


All times are GMT. The time now is 04:49 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.