SA-MP Forums Archive
Is possible move object attached to 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: Is possible move object attached to object? (/showthread.php?tid=421535)



Is possible move object attached to object? - adri1 - 09.03.2013

Hi, I think is imposibol, but:

Is possible move object attached (AttachObjectToObject)

example:
pawn Код:
new object = CreateObject...
new object2 = CreateObject...
AttachObjectToObject(object2, object...

//...
new Float:pos[3];
GetObjectPos(object2, pos[0], pos[1], pos[2]);
MoveObject(object2, pos[0]+1, pos[1], pos[2]);
I think is imposibol because object2 is attached to objec. But there is something similar?
Thanks.


Re: Is possible move object attached to object? - mastermax7777 - 09.03.2013

try it.. and see?


Re: Is possible move object attached to object? - MP2 - 09.03.2013

Quote:
Originally Posted by mastermax7777
Посмотреть сообщение
try it.. and see?
Not very helpful, are you?

No, it's not possible.


Re: Is possible move object attached to object? - 2KY - 10.03.2013

It's not directly possible, but I guess you could make a relatively fast timer (25-50ms depending on factors) and get the position of the object you wish to attach it to, and with some math set the position of the other object next to it, appearing as if it's attached.