• Gamemode Scripting: How to get attacked entity?
    3 replies, posted
I'm writing a custom gamemode and I've made a custom trigger entity for it. When the player attacks the entity I want to access keyvalues from the entity. How can I do this?
Can't you use an [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/GM/EntityTakeDamage]GM:EntityTakeDamage[/url] hook, check the entity is the trigger one you want and then check it's keyvalues?
Sounds like a plan to me, thanks MPan :)
I don't think bullets collide with trigger entities though
Sorry, you need to Log In to post a reply to this thread.