move object - 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 (
/showthread.php?tid=285637)
move object -
Horrible - 24.09.2011
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;
}
Re: move object -
[MG]Dimi - 25.09.2011
I dont think so. You can detach and reattach it, but you cant move it while being attached.
Re: move object - Max_Coldheart - 25.09.2011
No, it can't be moved while its attached, you must detach it and then reattach it after moving it.
Re: move object -
[MWR]Blood - 25.09.2011
Well, why not?
Not sure about that though.
Better try yourself.
Re: move object - Max_Coldheart - 25.09.2011
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.