2008.07.27, 01:47 PM
I'm trying to script a barrel to blow up, and all the pieces should fly outwards, bouncing off of things.
Sounds easy, but when I use the projectile auto bounce, the pieces continually bounce forever. I tried turing of bounce after 50 ticks or so, but it seems that bounce can only be changed in the construct function. I also tried using
when the piece collides with the map, but this causes it to stick to walls as well.
Is there any way to make projectiles bounce finitely or do I have to use objects?
Sounds easy, but when I use the projectile auto bounce, the pieces continually bounce forever. I tried turing of bounce after 50 ticks or so, but it seems that bounce can only be changed in the construct function. I also tried using
Code:
proj.action.stick();Is there any way to make projectiles bounce finitely or do I have to use objects?