# "Holster\_Gun" use action

**URL:** <https://discourse.cataclysmdda.org/t/holster-gun-use-action/10129>\
**Category:** The Garage\
**Created:** [July 22, 2015, 1:17am UTC](https://discourse.cataclysmdda.org/t/holster-gun-use-action/10129 "2015-07-22T01:17:30Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![RADIALTHRONE1](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/radialthrone1/32/377_2.png) [@RADIALTHRONE1](https://discourse.cataclysmdda.org/u/RADIALTHRONE1)\
**Post date:** [July 22, 2015, 1:17am UTC](https://discourse.cataclysmdda.org/t/holster-gun-use-action/10129/1 "2015-07-22T01:17:30Z")

</div>

0.C - 3430  
Curses

Not sure if this is a bug, or is just something that wasn’t coded into the game.

When combining any other use action with “holster\_gun”, it gives this error:

> DEBUG: Couldn't find item action named HOLSTER\_GUN

As far as i can tell, the other actions (I used sheath\_knife) work as expected.

EDIT: For the code, i wrote it as

> "use\_action" : ["HOLSTER\_GUN", "SHEATH\_KNIFE"], "properties" : [["holster\_size", "5"]]

---

<div class="post-metadata">

**Author:** ![tvm](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/tvm/32/457_2.png) [@tvm](https://discourse.cataclysmdda.org/u/tvm)\
**Post date:** [July 26, 2015, 2:52pm UTC](https://discourse.cataclysmdda.org/t/holster-gun-use-action/10129/2 "2015-07-26T14:52:20Z")

</div>

The use\_action itself seems to work quite well, if there’s only HOLSTER\_GUN. If you throw in another use\_action, you get the error message.

We don’t have currently any items that are able to do both (hold gun and knife).

---

<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:** [July 26, 2015, 7:04pm UTC](https://discourse.cataclysmdda.org/t/holster-gun-use-action/10129/3 "2015-07-26T19:04:53Z")

</div>

The debug message is a bit unclear on “where” is it not found:  
When defining an item with multiple use actions, all of those actions need to be defined in data/json/item\_actions.json. This is because they get their description from that file.

---

<div class="post-metadata">

**Author:** ![RADIALTHRONE1](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/radialthrone1/32/377_2.png) [@RADIALTHRONE1](https://discourse.cataclysmdda.org/u/RADIALTHRONE1)\
**Post date:** [July 26, 2015, 11:11pm UTC](https://discourse.cataclysmdda.org/t/holster-gun-use-action/10129/4 "2015-07-26T23:11:43Z")

</div>

[quote=“Coolthulhu, post:3, topic:10129”]The debug message is a bit unclear on “where” is it not found:  
When defining an item with multiple use actions, all of those actions need to be defined in data/json/item\_actions.json. This is because they get their description from that file.[/quote]

Ah-ha! Thanks coolthulhu, putting “Holster\_Gun” in the “item\_actions.json” fixed the problem.

---

<div class="post-metadata">

**Author:** ![RADIALTHRONE1](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/radialthrone1/32/377_2.png) [@RADIALTHRONE1](https://discourse.cataclysmdda.org/u/RADIALTHRONE1)\
**Post date:** [July 27, 2015, 6:55am UTC](https://discourse.cataclysmdda.org/t/holster-gun-use-action/10129/5 "2015-07-27T06:55:27Z")

</div>

[quote=“RADIALTHRONE1, post:4, topic:10129”][quote=“Coolthulhu, post:3, topic:10129”]The debug message is a bit unclear on “where” is it not found:  
When defining an item with multiple use actions, all of those actions need to be defined in data/json/item\_actions.json. This is because they get their description from that file.[/quote]

Ah-ha! Thanks coolthulhu, putting “Holster\_Gun” in the “item\_actions.json” fixed the problem.[/quote]

Well, it fixed that part of the problem. New problem: if i have something stored (knife or gun) i cant store anything else, it will just draw the stored item out.

---

<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:** [July 27, 2015, 7:22am UTC](https://discourse.cataclysmdda.org/t/holster-gun-use-action/10129/6 "2015-07-27T07:22:39Z")

</div>

This one isn’t fixable from the json side (you’d have to edit the sources). Holsters are hardcoded to only store one item at a time. Boots can be used to store two knives, but that wouldn’t work with pistols (holster function would still draw the first item and wouldn’t allow storing the second).
