# NPC behavior 'attack without moving' is buggy

**URL:** https://discourse.cataclysmdda.org/t/npc-behavior-attack-without-moving-is-buggy/13004
**Category:** The Garage
**Created:** [November 25, 2016, 8:33am UTC](https://discourse.cataclysmdda.org/t/npc-behavior-attack-without-moving-is-buggy/13004 "2016-11-25T08:33:18Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Nibelung44](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/nibelung44/32/587_2.png) [@Nibelung44](https://discourse.cataclysmdda.org/u/Nibelung44)
#### Post date: [November 25, 2016, 8:33am UTC](https://discourse.cataclysmdda.org/t/npc-behavior-attack-without-moving-is-buggy/13004/1 "2016-11-25T08:33:18Z")

</div>

This behavior makes the NPC behave as in ‘attack any enemy’ instead, from what I see. The NPC definitively moves toward the enemies and don’t stay put, which is the intent of the behavior. Hopefully a simple fix?

---

<div class="post-metadata">

### Author: ![Coolthulhu](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/coolthulhu/32/2446_2.png) [@Coolthulhu](https://discourse.cataclysmdda.org/u/Coolthulhu)
#### Post date: [November 25, 2016, 11:35am UTC](https://discourse.cataclysmdda.org/t/npc-behavior-attack-without-moving-is-buggy/13004/2 "2016-11-25T11:35:51Z")

</div>

I observed it before, but I don’t know what triggers it, which makes it hard to fix.

---

<div class="post-metadata">

### Author: ![Greiger](https://avatars.discourse-cdn.com/v4/letter/g/8797f3/32.png) [@Greiger](https://discourse.cataclysmdda.org/u/Greiger)
#### Post date: [November 26, 2016, 9:30pm UTC](https://discourse.cataclysmdda.org/t/npc-behavior-attack-without-moving-is-buggy/13004/3 "2016-11-26T21:30:44Z")

</div>

I have my npcs set to behave this way almost all the time and I’ve never seen any huge movement, but I have seen it happen when they are given a spear and they would have to swing through me to hit a Zed.

That may be a clue into the cause. But I do have to say that they hardly move at all in those cases, just enough to hit the zombie without me being in the line of fire.

---

<div class="post-metadata">

### Author: ![Coolthulhu](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/coolthulhu/32/2446_2.png) [@Coolthulhu](https://discourse.cataclysmdda.org/u/Coolthulhu)
#### Post date: [November 27, 2016, 9:12am UTC](https://discourse.cataclysmdda.org/t/npc-behavior-attack-without-moving-is-buggy/13004/4 "2016-11-27T09:12:34Z")

</div>

Going around the player is relatively minor. Sometimes NPCs try to attack critters on the other side of the map.

---

<div class="post-metadata">

### Author: ![Lesseps](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/lesseps/32/442_2.png) [@Lesseps](https://discourse.cataclysmdda.org/u/Lesseps)
#### Post date: [November 27, 2016, 12:13pm UTC](https://discourse.cataclysmdda.org/t/npc-behavior-attack-without-moving-is-buggy/13004/5 "2016-11-27T12:13:59Z")

</div>

I think I know what triggers this behavior. I have a party of three NPCs with me, and I use that command on all of them. The only one who has described runaround action is the girl with crossbow. She cannot attack with that standing since I forbid using handguns and moving as well. I had to switch her to ‘don’t attack at all’. Please test this, I think it’s might be the case
