• Making functioning Ragdoll.
    2 replies, posted
I'm making a taser for TTT. I don't know how to make a functioning ragdoll. Like, when you tase the player and hit his ragdoll, he'll take damage and die if you damage him well. Can anybody explain me how to do that?
do something like this [lua] ents.Create("prop_ragdoll") [/lua] and when the dude gets hit just set the ragdoll model to his playermodel, make him take damage, and make him spectate the ragdoll and bam
[url]http://gmodwiki.net/Lua/Events/Entity/OnTakeDamage[/url] In your taze function, set a variable of your ragdoll, to the player object. Like, ragdoll.ply. check if it's a ragdoll, if yes, then check if the ragdoll has a player, if yes, remove health.
Sorry, you need to Log In to post a reply to this thread.