Blockland Forums > Modification Help
How to make projectile model ricochet off of walls after impact?
RockyDoctor65:
To put it simply I want to do something like this.
Using Bushido's "Saw! Tomahawk!" from his quake type weapons as an example. The model bounces off sort of like a bullet casing.
Can you please give me the code for something like this and tell me where to put it? Thanks.
jes00:
Try setting isBallistic to true and then messing bounceElasticity, bounceFriction, and gravityMod.
RockyDoctor65:
--- Quote from: jes00 on September 03, 2019, 11:48:09 AM ---Try setting isBallistic to true and then messing bounceElasticity, bounceFriction, and gravityMod.
--- End quote ---
What does that do? Didn't seem to do anything. Also I'm making my own weapon. It's not an edit of the tomahawk, projectiles are ballistic too.
Conan:
the way the tomahawk does it is create a debris datablock and attach it to the explosion, and has the explosion spawn one debris.
RockyDoctor65:
--- Quote from: Conan on September 03, 2019, 12:07:18 PM ---the way the tomahawk does it is create a debris datablock and attach it to the explosion, and has the explosion spawn one debris.
--- End quote ---
I'll see if I can figure it out. I will let you all know if I do!
Navigation
[0] Message Index
[#] Next page
Go to full version