Author Topic: OnRaycastHit  (Read 562 times)

Long names.

I dunno if this is possible or anything, but since I use G-Cat's Dweps pack, I'm trying to make a map where if you shoot certain things, something happens. Shoot a support beam, you can crush enemies. Shoot the lights out, they stay off for 30 seconds, all that. Except, the bullets dont raycast, or they rely on raycast or something. So they don't work with the normal 'projectilehit'

tl;dr OnProjectileHit but with raycast weapons.
« Last Edit: December 15, 2013, 06:41:23 PM by Arekan »

Title should be onRaycastHit - onProjectileHit obviously works with projectiles, not raycasts.

I'm not sure there's a way to package all raycast hits. Even if there was, it would have a hard time differentiating between that from a gun and that from another mod. You could manually add code to all of the weapons that shoot raycasts though