• Damage player with set Attacker
    5 replies, posted
How would I damage a player, and set who the attacker was? I imagine something like: [lua]ply:Hurt( damage, attacker )[/lua] or [lua]ply:Hurt( damageinfo )[/lua] Thanks in advance.
[URL]http://wiki.garrysmod.com/?title=Player.TraceHullAttack[/URL]
[QUOTE=Feihc;25897924][URL]http://wiki.garrysmod.com/?title=Player.TraceHullAttack[/URL][/QUOTE] Alright, thanks.
Alternatively: [URL]http://wiki.garrysmod.com/?title=Entity.TakeDamageInfo[/URL]
[QUOTE=Feihc;25898056]Alternatively: [URL]http://wiki.garrysmod.com/?title=Entity.TakeDamageInfo[/URL][/QUOTE] This one's perfect for my needs, thanks.
Is it possible to do the damage without any view kick?
Sorry, you need to Log In to post a reply to this thread.