I am currently having an issue using the native “AttachEntityToEntityPhysically”
The task I am trying to complete is for the player to be able to drag animals
I have gotten it to work, but the desync for other clients is terrible. As the player dragging the animal walks, all the other client sees is the animal jumping to the player every few seconds, with no ragdoll.
Here is a snippet of my code
SetEntityCoords(ped, coords.x, coords.y, coords.z, 1, 0, 0, 0)
ClearPedSecondaryTask(ped)
SetPedCanRagdoll(ped, true)
SetPedToRagdoll(ped, 1, 1, 0, false, false, false)
SetEntityNoCollisionEntity(ped, GetPlayerPed(-1), true)
AttachEntityToEntityPhysically(ped, fakeBone, pedBoneIndex, 0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 10000.0, false, true, true, true, 2)