• Determining bullet hit?
    2 replies, posted
I've started an addon that's determines were the bullet is hit and then something happens. I've came accross a short problem. I've been trying to figure out how to detect if the bullet is shot and hits this then do whatever. So I've searched around and managed to find this [url]http://wiki.garrysmod.com/page/GM/PlayerTraceAttack[/url] Now using that I checked the trace result structure and found "physics Bone" I'm. Not sure whether that included bones like "lower_spine" "calf" or whatever ? Couldn't I set up a table of the bones and do soemthing if the trace hits that point for each of them? Pretty lost here :L
[QUOTE=Skate;45570755]I've started an addon that's determines were the bullet is hit and then something happens. I've came accross a short problem. I've been trying to figure out how to detect if the bullet is shot and hits this then do whatever. So I've searched around and managed to find this [url]http://wiki.garrysmod.com/page/GM/PlayerTraceAttack[/url] Now using that I checked the trace result structure and found "physics Bone" I'm. Not sure whether that included bones like "lower_spine" "calf" or whatever ? Couldn't I set up a table of the bones and do soemthing if the trace hits that point for each of them? Pretty lost here :L[/QUOTE] You could use [URL="http://wiki.garrysmod.com/page/GM/EntityTakeDamage"]this[/URL] maybe You can find out the bone where it hit.
[QUOTE=AnonTakesOver;45570784]You could use [URL="http://wiki.garrysmod.com/page/GM/EntityTakeDamage"]this[/URL] maybe You can find out the bone where it hit.[/QUOTE] That might work actually. I'll have to check. Thanks!
Sorry, you need to Log In to post a reply to this thread.