I’m trying to fix a bug on my server. Do you know rape swep?
This makes two players to ragdolls on some time, then turnes it back. But when you try to use remover on one of then - server crashes.
I found code in init.lua, which makes this ragdolls. This is(it’s same for each other player):
ragd = ents.Create("prop_ragdoll") ragd:SetModel( plyVictim:GetModel() ) ragd:SetPos( plyVictimPos ) ragd:Spawn() ragd:Activate()
I wanted to make this ragdoll to world model, but I didn’t found function for this.
I looked for it here: http://maurits.tv/data/garrysmod/wiki/wiki.garrysmod.com/indexd46d.html
Can you show me this function, does it helps?
Or I must find another way to fix it?