01.10.2009, 13:21
Hello,
I've made some improves to the Carrier ship on sf,i made some MoveObject's.
Well, i used MoveObject Alot of times Before,but this never happened to me.here is my code:
OnGameModeInit:
OnPlayerCommandText:
Well,what happens is,that when i'm doing /shipo1,the object that suppose to move,is like,Double its'self and one object moves to the new pos,
and one stays in the place.its looks like its not moving,but when im going to the new pos,i see the object moved o_O.
same thing happens with /shipo2.
AND im sure that i didnt make two objects one over each other,i checked,and i tried to Re-Create the map,still the same
Any help appreciated,thanks in advance.
I've made some improves to the Carrier ship on sf,i made some MoveObject's.
Well, i used MoveObject Alot of times Before,but this never happened to me.here is my code:
pawn Код:
new square;
new side;
pawn Код:
square = CreateObject(3115, -1456.750732, 501.498413, 16.915733, 0.0000, 0.0000, 0.0000);
side = CreateObject(3114, -1414.365234, 516.415710, 16.668062, 0.0000, 0.0000, 0.0000);
pawn Код:
if (strcmp("/shipo1", cmdtext, true, 10) == 0)
{
MoveObject(square,-1456.750732, 501.498413, 9.840750,1);
}
if (strcmp("/shipo2", cmdtext, true, 10) == 0)
{
MoveObject(side,-1414.365234, 516.415710, 9.643066,1);
}
and one stays in the place.its looks like its not moving,but when im going to the new pos,i see the object moved o_O.
same thing happens with /shipo2.
AND im sure that i didnt make two objects one over each other,i checked,and i tried to Re-Create the map,still the same
Any help appreciated,thanks in advance.