• Multiple Kills
    3 replies, posted
I want to implement a function that occurs after 2 or more people die within a second of each other. What is the best approach?
[url]http://wiki.garrysmod.com/page/GM/PlayerDeath[/url] I'm assuming you want to do a multi-kill script, then that would be your best bet since it gives you exactly what you need.
I'm aware of that function, but I need to know how to have another function execute if 2 players die within a single second.
save the kill with [lua]var = CurTime()[/lua], and then each kill have it check the last saved kill to see the distance apart.
Sorry, you need to Log In to post a reply to this thread.