General > Developers Corner

Help with modding murder.

(1/1)

jcoolj13:
Hello, I am fairly new to this website and I have one question. How do I make it where if the  bystander kills another bystander, they become blind for 45 seconds. Here is the code;

--- Code: ---function IgniteBystander(victim,inflictor,attacker)
 
        if not attacker:GetMurderer() then
                attacker:Ignite()
        end
 
end
hook.Add("PlayerDeath", "BystanderPunishment", IgniteBystander)
--- End code ---

Navigation

[0] Message Index

Go to full version