Is there anyway to detect when a player damages another player or NPC? Also while I'm asking is there anyway to detect if a player kills something?
I need this to be client side.
Thanks in advance.
[B][URL="http://wiki.garrysmod.com/?title=Gamemode.PlayerHurt"]Gamemode.PlayerHurt [IMG]http://wiki.garrysmod.com/favicon.ico[/IMG][/URL][/B]
[B][URL="http://wiki.garrysmod.com/?title=Gamemode.DoPlayerDeath"]Gamemode.DoPlayerDeath [IMG]http://wiki.garrysmod.com/favicon.ico[/IMG][/URL][/B]
[B][URL="http://wiki.garrysmod.com/?title=Gamemode.OnNPCKilled"]Gamemode.OnNPCKilled [IMG]http://wiki.garrysmod.com/favicon.ico[/IMG][/URL][/B]
They are serverside; there is no reason for them to be clientside.
Maybe it will be easier if I explain why I need this. If you play MW2 you know when you hit someone it gives you an indication that you did. I want that in Gmod.
[URL="http://wiki.garrysmod.com/?title=Usermessage"][B]You know that the server can communicate with the client, right?[/B][/URL]
[QUOTE=_nonSENSE;23971664][URL="http://wiki.garrysmod.com/?title=Usermessage"][B]You know that the server can communicate with the client, right?[/B][/URL][/QUOTE]
Yeah I know, but I want it to work on any server I go to. For the user message to work I would have to put code on the server right? Maybe I'm thinking about this wrong.
Sorry, you need to Log In to post a reply to this thread.