Creating Bullets that Destroy Enemies (Video Tutorial - Arsenal RSL)

Hey everyone!

I’ve made a video on how to shoot bullets that destroy objects (enemies) in the Blender Game Engine. There is no python involved as well. I’ll leave the video below for those who are interested! :wink:

I do upload several Blender Game Engine videos a week, so if you want updates don’t forget to subscribe to my YouTube channel (Arsenal RSL)! :slight_smile:

My Channel Link (Arsenal RSL):

My Blender Game Engine Playlist (170 Videos - 3,448 Views):

BGE - Destroying Enemies With Bullets (No Python)

I would not recommend this method

I would use python for this

Ray(distance bullet travels per frame+margin)------python

import bge
from mathutils import Vector

cont = bge.logic.getCurrentController()
own = cont.owner
ray = cont.sensors['Ray']

if ray.positive:
    if 'health' in ray.hitObject:
        ray.hitObject['health'] -= own['Damage']

added = bge.logic.getCurrentScene().addObject('BulletImpact',own,0)

this will impart damage and knockback and add bullet damage sprite

This is for those who don’t know how to use python, although I agree that using rays is the better option.