| Blockland Forums > Modification Help |
| Minor problems with a simple weapon |
| (1/3) > >> |
| Demian:
I intend to make a dodgeball and so far everything is working just fine. I can recolor the dodgeball inventory icons, first person model and the item model when it's spawned. In other words the weapon is working perfectly except for two things. The collision and the model color when it's thrown. How do assign the sphere model a collision mesh? I tried to export the model with a group called "col-1" with no material but it didn't work. (Milkshape.) Then there's the problem with the model color when it's a projectile. It's white regardless of what I do. How do I change that? |
| Demian:
Oh and is there some fancy piece of code that I could add to the "directDamage" part to just kill the player rather than causing loads of damage? |
| TheKhoz:
Well, you don't need to give projectiles collision, and what could you be doing wrong with your projectile. I tried twice, and it worked. |
| takato14:
set these values in the script: isballistic = true; bounceElasticity = 0.9; bounceFriction = 0.1; armingdelay = [one less than lifetime]* *if lifetime = 30000; then armingdelay = 29900; |
| Demian:
--- Quote from: TheKhoz on December 10, 2010, 07:12:01 PM ---Well, you don't need to give projectiles collision, and what could you be doing wrong with your projectile. I tried twice, and it worked. --- End quote --- But I'd really like a collision box for my projectile. I'm using the latest MilkShape. The box's group name is "Collision0" and it has no material. I'm exporting it as Torque Game Engine DTS without animation, exporting material info and Collision Mesh as Collision Meshes. How do I change the model's color when it's thrown and is a projectile? |
| Navigation |
| Message Index |
| Next page |