How can a fire spawn object be attached to an enemy?

Hi,

I tried this old clip, but I can’t get what I need from it. It uses rays for a basic brick setup for shooting.

I want to be able to get a fire spawn on an enemy, so how can I get the spawn to attach to the AI when firing a weapon?

Thank you.

you could parent it to the weapon.

Press w then x.Look at the logic bricks on sphere in layer 2.Here is the blend.Visual programming of the bge has a lot to offer.Especially if you are a beginner.

Attachments

parent logics x.blend (477 KB)