samp-incognito / samp-streamer-plugin

Streamer Plugin for SA-MP (San Andreas Multiplayer)
Apache License 2.0
229 stars 90 forks source link

Suggestion: AttachDynamicObjectToDynamicObject #93

Closed kristoisberg closed 8 years ago

kristoisberg commented 8 years ago

native AttachDynamicObjectToDynamicObject(STREAMER_TAG_OBJECT objectid, STREAMER_TAG_OBJECT attachtoid, Float:offsetx, Float:offsety, Float:offsetz, Float:rx, Float:ry, Float:rz, syncrotation = 1);

Not a lot to specify here. I'm not active in SA-MP right now but I remember that I needed it some time ago.

ikkentim commented 8 years ago

Can't be done; AttachPlayerObjectToPlayerObject does not exist (anymore). https://wiki.sa-mp.com/wiki/AttachPlayerObjectToPlayer

ghost commented 8 years ago

https://github.com/samp-incognito/samp-streamer-plugin/blob/master/src/natives/objects.cpp#L338

samp-incognito commented 8 years ago

Yeah, it has already been added, but you'll need to have YSF loaded to use it.

kristoisberg commented 8 years ago

I know that AttachDynamicObjectToObject is already included in the plugin and I have nothing against using YSF, but I was talking about AttachDynamicObjectToDynamicObject. I guess it could be added if kurta added the AttachPlayerObjectToPlayerObject native to YSF.

ghost commented 8 years ago

AttachDynamicObjecToObject attach object to DYNAMIC object. Not to global object, but AttachDynamicObjectToDynamicObject is longer than 32 character and max native function name is 32 char.

https://github.com/kurta999/YSF/blob/YSF_/src/Scripting.cpp#L4560

kristoisberg commented 8 years ago

Oh, I didn't know that, sorry.