Hello, As the title suggests I am trying to attach a weapon to my character, but when the weapon collides with an enemy it destroys itself. The only workaround I found was to set it to "destroy all" and make the collision box smaller so it cant collide with the player but if it collides with the ground, it destroys it. Is there any other way? Thanks!
In this example I just created, the pistol that has the character is not destroyed by colliding with the enemy. https://dl.dropboxusercontent.com/u/64343008/gun.bbdoc
Thanks for the help, but in the example you use a gun with bullets. I am trying to make something like a sword, to actually collide with the enemy
For that case, you can use a button connected with a Strike action: https://dl.dropboxusercontent.com/u/64343008/sword.bbdoc
I am trying to use only one button for moving. Is it possible to spawn an object repeatedly and destroy it after 0.01 sec?
A single button to move and hit with the sword? You can use the first example that shoots, put a very fast shot and the bullet is hidden at the same time it shows the animation of the sword. The result would be the same.
Make a new game object - call it shield. Use advance component to give it health - as much as you want before it breaks or give it a lot of health if you dont want it to be destroyed. Drag this shield in to your character default animation. You may need to add the shield into each animation for movement and attacking. You can also create an animation for the shield if its being attacked and drag that in to the attack animation (as an example)
Isn't it easier just to set your sword's Health to 9999 ? That way it kills opponents but doesn't get destroyed itself