Discord
Steam
/
Garry's Mod
/
Developers
/
Detecting when..
Login/Join
Event Log
Detecting when a player kills another player.
5 replies, posted
Search
In This Thread
I need to detect when a player kills another player. Whats the function that's used for that?
[b][url=wiki.garrysmod.com/?title=Gamemode.PlayerDeath]Gamemode.PlayerDeath [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]
[B][URL="http://wiki.garrysmod.com/?title=Gamemode.PlayerDeath"]Gamemode.PlayerDeath [IMG]http://wiki.garrysmod.com/favicon.ico[/IMG][/URL][/B]
How do I find out what weapon was used to kill? The weapon in "(victim, weapon, killer)" is used as an entity
Yes, the "weapon" argument is the entity of the weapon used to kill it. If you want the class of the weapon, you can do [code]weapon:GetClass()[/code]
Sorry, you need to
Log In
to post a reply to this thread.