Author Topic: Bullets go through walls.  (Read 1136 times)

I made a weapon with two weapon images and it switches back and fourth between them when you right click (I don't know if this matters). But when I switch to the second image (the one it fires in), it works fine but the bullets pass through walls and bricks.

One of the following is the issue:
  • The walls/bricks have no collision.
  • There is a script active which teleports it through the object.
  • Your projectile fires too fast.
  • Your projectile model has no collision mesh.
  • Your game is broken.

1. No, it is the default bedroom and the other guns work fine.
2. No, I've used this script for other guns.
3. I lowered the speed so low that I walk faster than it.
4. Collision mesh? If your talking about the colors that I used when I made the bullet model, they work fine. (P.S I tried the default bullet with it as well.)
5. No, every other gun works fine.

P.S I've managed to get it to work but it only collides with bricks/walls that are far away. (I've used this script for a few sniper rifles and it worked fine, but this isn't a sniper rifle.)

Did you package OnCollision at all?


Hmm?
Is your projectile supposed to do something special when it hits something?


It's likely a problem with the collision mesh.

No, a collision mesh is not the colors you used when you made the model, search for what it is.

But I thought Collision Meshes were only used for Vehicles?

But I thought Collision Meshes were only used for Vehicles?
No. It's for everything that is supposed to hit something else ingame, so that would be projectiles and vehicles and whatever else

No. It's for everything that is supposed to hit something else ingame, so that would be projectiles and vehicles and whatever else

Oh really? Then how come you only have to make them for Vehicles?

does the other image use a different projectile? If so, check armingDelay in the projectile data crap

does the other image use a different projectile? If so, check armingDelay in the projectile data crap

It only fires bullets in the second image

Oh really? Then how come you only have to make them for Vehicles?
You have to make them for projectiles... I just said that...

It only fires bullets in the second image
then check the projectile data