PDA

View Full Version : Where are bullet collisions handled?


keeffecanflyit
10-18-2010, 07:29 AM
Hi,

So what I want to do is: when a bullet (type does not matter, we'll say the handgun) hits an entity, I want a method to be called. This method will change an int value in the entity.

I know how to use and edit entities, i just cannot find the actual collision handling block of code.

Any ideas where this is located, please?

Biohazard_90
10-18-2010, 07:49 AM
Make sure that your entity is set to accept damage (at least DAMAGE_EVENTS_ONLY) then OnTakeDamage() should be called when you shoot it.

keeffecanflyit
10-18-2010, 09:46 AM
Oh god, how did I miss that. Thanks!