• Awarding kills via traps to a player
    2 replies, posted
Hi, I'm basically trying to make it so if I make a trap (say in sandbox), I will get credit for this kill. So far I tried constantly setting [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/Entity/SetPhysicsAttacker]Entity:SetPhysicsAttacker[/url], which I didn't even get to testing because it turns out it prevents a player's props from hurting himself, and I tried to change the attacker in the damage data in [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/GM/ScalePlayerDamage]GM/ScalePlayerDamage[/url] but it seems to not do anything (I guess only the actual damage values are taken from that). Is there a non-hacky way to make it happen? ... Is there a HACKY way to make it happen? Thanks
Well now I feel dumb. Works great, thank you!
Sorry, you need to Log In to post a reply to this thread.