move object
#1

can i move object after i attach it to vehicle?
example:
pawn Код:
CMD:secret(playerid,params[])
{
new Float:x1,Float:y1,Float:z1,Float:a;
GetPlayerPos(playerid,x1,y1,z1);
:P = CreateObject(1609, x1, y1 + 3, z1, 0.0, 0.0, a);
XD = CreateVehicle(441,x1,y1 + 3,z1,a,-1,-1,-1);
AttachObjectToVehicle(:P, XD, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
MoveObject(:P,x1,y1,z1,100000);
return 1;
}
Reply
#2

I dont think so. You can detach and reattach it, but you cant move it while being attached.
Reply
#3

No, it can't be moved while its attached, you must detach it and then reattach it after moving it.
Reply
#4

Well, why not?
Not sure about that though.
Better try yourself.
Reply
#5

Quote:
Originally Posted by [MWR]Blood
Посмотреть сообщение
Well, why not?
Not sure about that though.
Better try yourself.
it can not be moved while attached. It must be detached and re-attached.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)