---
title: "Discussion on \"Enemies shoot back!\" | Hashnode"
description: "Discussion on \"Enemies shoot back!\". For our enemies to be able to shoot back, they need to have a gun and bullet object dedicated to themselves. but first, we need to add a variable to our enemies to see if we have to spawn them with gun or without it so we add a “has_weapon” bool vari..."
url: "https://hashnode.com/posts/enemies-shoot-back/68a607c436ef6c8917e7d07b"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Enemies shoot back!](https://shiman.hashnode.dev/enemies-shoot-back?utm_source=hashnode&utm_medium=feed)

For our enemies to be able to shoot back, they need to have a gun and bullet object dedicated to themselves. but first, we need to add a variable to our enemies to see if we have to spawn them with gun or without it so we add a “has\_weapon” bool vari...

Aug 20, 2025 · 2 min read · shiman.hashnode.dev  
Read the article

## Written by

[zeinab mahdizadeh](https://hashnode.com/@ShimanWZ)

@ShimanWZ

  
[View profile](https://hashnode.com/@ShimanWZ)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
