SA-MP Forums Archive
[how] Move object ( attach to vehicle ) - 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: [how] Move object ( attach to vehicle ) (/showthread.php?tid=426915)



[how] Move object ( attach to vehicle ) - morocco - 30.03.2013

Hi guys


I make this object http://postimg.org/image/712ieskxd/

how to move this object ??

i make this http://postimg.org/image/e4bpszso7/ but no working


Re: [how] Move object ( attach to vehicle ) - zombieking - 30.03.2013

https://sampwiki.blast.hk/wiki/AttachObjectToVehicle


Re: [how] Move object ( attach to vehicle ) - morocco - 30.03.2013

Quote:
Originally Posted by zombieking
Посмотреть сообщение
Thanks but See this http://postimg.org/image/712ieskxd/ i know how to make object to vehicle

but i want , how to move it


Re: [how] Move object ( attach to vehicle ) - MrTinder - 30.03.2013

try
pawn Код:
new obj1, car1;
    car1 = AddStaticVehicle(modelid, Float:spawn_x, Float:spawn_y, Float:spawn_z, Float:angle, color1, color2); // Your Car
    obj1 = CreateObject(18648,0,0,0,0,0,0); // create your object
    AttachObjectToVehicle(obj1, car1, -0.8, 0.0, -0.55, 0.0, 0.0, 0.0); // edit only 0.8, 0.0 and -0.55..don't edit other 3 things



Re: [how] Move object ( attach to vehicle ) - morocco - 30.03.2013

Quote:
Originally Posted by MrTinder
Посмотреть сообщение
try
pawn Код:
new obj1, car1;
    car1 = AddStaticVehicle(modelid, Float:spawn_x, Float:spawn_y, Float:spawn_z, Float:angle, color1, color2); // Your Car
    obj1 = CreateObject(18648,0,0,0,0,0,0); // create your object
    AttachObjectToVehicle(obj1, car1, -0.8, 0.0, -0.55, 0.0, 0.0, 0.0); // edit only 0.8, 0.0 and -0.55..don't edit other 3 things
how to move it


Re: [how] Move object ( attach to vehicle ) - MrTinder - 30.03.2013

try
pawn Код:
MoveObject(aa, 0, 0, 10, 2.00);
just edit time and cords


Re: [how] Move object ( attach to vehicle ) - McLuhan - 20.11.2013

Quote:
Originally Posted by MrTinder
Посмотреть сообщение
try
pawn Код:
MoveObject(aa, 0, 0, 10, 2.00);
just edit time and cords
not work