Moving few objects with AttachDynamicObjectToObject
#1

Hello, I'm trying to attach a few objects to one main object, and then move the main object (so all other objects move together). I'm using streamer (and YSF), but it seems that eventually it moves only the main object, and the attached objects remain at their initial position.
AttachDynamicObjectToObject returns 1 on all attaches, and I am unable to move the attached objects either.

Example code:
pawn Код:
AttachDynamicObjectToObject(obj1, mainobj, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
MoveDynamicObject(mainobj, x, y, z+100, speed, rx, ry, rz);
With that code, only mainobj moves..
Reply
#2

Quote:
Originally Posted by arad55
Посмотреть сообщение
Hello, I'm trying to attach a few objects to one main object, and then move the main object (so all other objects move together). I'm using streamer (and YSF), but it seems that eventually it moves only the main object, and the attached objects remain at their initial position.
AttachDynamicObjectToObject returns 1 on all attaches, and I am unable to move the attached objects either.

Example code:
pawn Код:
AttachDynamicObjectToObject(obj1, mainobj, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
MoveDynamicObject(mainobj, x, y, z+100, speed, rx, ry, rz);
With that code, only mainobj moves..
well, there many issues that caused by using YSF and streamer in same server.
do a test:
create a blank script and 4 objects, attach the 3 to one those object and try to move them
wihout YSF plugin and again try with YSF
Reply
#3

Quote:
Originally Posted by XeonMaster
Посмотреть сообщение
well, there many issues that caused by using YSF and streamer in same server.
do a test:
create a blank script and 4 objects, attach the 3 to one those object and try to move them
wihout YSF plugin and again try with YSF
The problem is that YSF is required to use AttachDynamicObjectToObject..

Quote:

AttachDynamicObjectToObject(objectid, attachtoid, Floatffsetx, Floatffsety, Floatffsetz, Float:rx, Float:ry, Float:rz, syncrotation = 1)
This attaches a dynamic object to another dynamic object.
This requires kurta999's YSF plugin to be loaded.

Reply
#4

Quote:
Originally Posted by arad55
Посмотреть сообщение
The problem is that YSF is required to use AttachDynamicObjectToObject..
are you sure that YSF fully loaded? i've been searching for that bug in github, i found some comments that YSF not fully loaded can cause this.
Reply
#5

Well what is there to load but include and plugin?
Reply
#6

https://github.com/samp-incognito/sa...ugin/issues/46

https://github.com/samp-incognito/sa...gin/issues/202
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)