I have been trying to figure out how to make a prop follow the animations of a character when applied. I have tried compiling the prop into a player model and just parenting it to the pelvis bone, but this did not make it follow the animations. Wraithcat helped me figuire out I need to do use “bonemerge”, but now I am lost with what the rules and exceptions are. So I am guessing the prop has to be a ragdoll, or a npc in order to bind to a player model. I did manage to get the prop in the map, but it was not merged to the player. It was just stuck in the middle of the map floating in the air. Here is the code I used:
local e = ents.Create("prop_physics") e:SetModel("models/g_belt/g_belt.mdl") e:SetParent("Valvebiped.bip01_pelvis") e:AddEffects(EF_BONEMERGE)
If anyone coud help poin me in the right direction or tell me the rules for using this, I would be grateful.