View Single Post
Author Message
Cieniu97
Junior Member
Join Date: Sep 2021
Location: Poland
Old 10-10-2021 , 08:45   TF2 Get entity of fired projectile
Reply With Quote #1

Hello there!

Context:
I'm coding SDK OnTakeDamage event. There is provided inflictor and attacker.
Determining weapon for hitscan weapons is easy. Projectiles is where I am stuck. I have made distinction from those using GetEntClassName.

Question:
How to get entity index of weapon that fired projectile having only projectile entity?

Last edited by Cieniu97; 10-10-2021 at 12:22.
Cieniu97 is offline