View Full Version : Hook attacks on a prop_dynamic?
Beaverboys
10-15-2015, 04:47
Does anyone know of a way to sense when a player attacks a prop_dynamic with a knife?
sdkhook that prop entity... with attack or touch
Beaverboys
10-15-2015, 07:48
Touch is not what I want, and I don't see any attack hooks except TraceAttack/TraceAttackPost. Will that work for this?
Mitchell
10-15-2015, 10:09
You have to make the entity be able to take damage, and hook the prop with SDKHooks_OnTakeDamage.
netprop: m_takedamage
friagram
10-16-2015, 07:39
probably could hook single entity output on damaged also
vBulletin® v3.8.7, Copyright ©2000-2024, vBulletin Solutions, Inc.