• GM:CreateClientsideRagdoll not being called when a player dies?
    2 replies, posted
Shouldn't CreateClientsideRagdoll be called when a player dies? Or when Player:CreateRagdoll() is called? Neither are working. [editline]17th May 2016[/editline] I checked CreateRagdoll and it's not modified at all. [editline]17th May 2016[/editline] Yes it's in clientside. Nothing is printed [lua] local function HOOK_CreateClientsideRagdoll(owner, plyrag) print(owner, plyrag) end hook.Add("CreateClientsideRagdoll", "PPM_CreateClientsideRagdoll", HOOK_CreateClientsideRagdoll) [/lua]
I'll just use OnEntityCreated for now
I think the ragdoll entity is created serverside, considering [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/Player/GetRagdollEntity]Player:GetRagdollEntity[/url] is a client and serverside function. Odd that CreateRagdoll isn't called though, maybe cause it's a special ragdoll or something
Sorry, you need to Log In to post a reply to this thread.