View Single Post
backwards
AlliedModders Donor
Join Date: Feb 2014
Location: USA
Old 08-22-2019 , 14:12   Re: [Question] Entity Index
Reply With Quote #2

use the onentitycreate callback and check if it's a grenade_projectile type. Then SDKHook its spawnpost function where you will check the netprop m_hThrower. Use EntRefToEntIndex to get the players index that threw the grenade projectile.
__________________
I highly recommend joining the SourceMod Discord Server for real time support.
backwards is online now