Ok so this is supposed to remove the ragdoll and play an effect when someone dies as that playermodel, instead it has a delay of removing it and doesnt play an effect, help pls
hook.Add("PlayerDeathThink", "fix_dragon_ragdoll", function(ply)
if ply:GetModel() == "models/player/silviu/sillydragon_flying.mdl" then
local ent = ply:GetRagdollEntity()
if IsValid(ent) then
local effectdata = EffectData()
effectdata:SetStart(ply:GetPos())
effectdata:SetOrigin(ply:GetPos())
effectdata:SetScale(1)
effectdata:SetMagnitude(1)
effectdata:SetScale(3)
effectdata:SetRadius(1)
util.Effect( "HelicopterMegaBomb", effectdata )
ent:Remove()
end
end
end)
no
thanks for the help!
Using code tags [noparse][code][/code][/noparse]
Ok, listen before you keep posting here you gotta be cool,
relax
post good
in this neighborhood
you gotta act straight
and think fast
you gotta keep your bad posts far in the past
to be part of
this crazy little town called 'Punch
there goes your net cred
writing "Mai" and a "halp" and "ples"
see we're disgusted
we only groom cool cats and you have proven to be quite a dork
First of all, wrong area, when will anyone ever read the posting rules.
second of all, spell correctly, its 'help' not 'halp', 'my' not 'Mai'
and last of all, use code tags and stop being an idiot.
[IMG]http://i3.kym-cdn.com/photos/images/original/000/054/526/HatersGonnaHate.jpg[/IMG]
[highlight](User was banned for this post ("Image macro / Stupid post" - Swebonny))[/highlight]
Sorry, you need to Log In to post a reply to this thread.