• Running a function after taking explosive damage?
    2 replies, posted
I know this must seem like something odd to get confused over, but I can't get this one problem straight. I know how to use the dmginfo:IsBlastDamage () function, but that's where it ends. What I need is a way to detect that it's taking above 75 damage, and that the damage being taken is explosive. Every attempt has failed, so I'm turning to you guys for help. Any suggestions? :v: And yes I have seen the wiki entry.
Have you tried using the DamageInfo:GetDamage( ) function? ex: if DamageInfo:GetDamage() > 75 then etc.
Try [lua] function GM:ScalePlayerDamage(ply,hitgroup,dmginfo) if dmginfo:IsBlastDamage() and (dmginfo:GetDamage() > 75) then --Do epic shit here end end [/lua]
Sorry, you need to Log In to post a reply to this thread.