Fire 3 shots and delete from inventory

How do I make it so after you fire 3 shots with timekeeper it deletes from inventory? I tried many methods but none worked

didnt i solve this for you?

A life cycle, counter, and an item granter
Event occurs increment counter, when the counter target reaches 3 the item granter will grant -1 time keeper.

2 Likes

thats what i said the last time he asked

he just reposted the topic

1 Like

No it still didnt work in the end after I wanted it with 3 ammo

oh alright i can fix that replace the checker with a counter

set the starting number to 0

make sure to keep the lifecycle and item granter from the other time you asked for this

1 Like

Uhm,
have an item grant give a gadget with 0 ammo by default.
Now grant them 3 of the gadgets ammo.

Use an inventory manager to detect when they run out of the gadgets ammo.
Send it to an item granter that removes the firstly granted item.

you cant buy a gadget with 0ammo they are outset to their fully reloaded versions

yeah i don’t think any of this works because other gadgets overlap the system make it so keeps breaking

The inventory manager won’t see the ammo that is in the gadget because the ammo is in the gadget and not the inventory, so that wouldn’t work

1 Like

How did it exactly not work? I read his solution and i tried it

Because he has other gadgets, not just timekeeper (i think)

1 Like

So basically I did all the channeled but for some resaon it’s deleting after one shot even if there is 3 shots left

You can use a life cycle to sense when they fire it once, and upgrade a counter that senses when it gets to three and deletes your gadget

All you’ll need is a setup like the one below and a few settings changes.

Settings to change:

  • Make sure the lifecycle device is listening for “Player Fires Gadget”.
  • For the counter, you’ll need to set “Use Target Value” to yes, then set the target value to 3.
  • For the item granter, make sure the amount granted is -1.

Does this help?

Note:
I sort of stole all of this from @Jhan. All I did was try to present it more clearly and in depth.

1 Like

That wouldn’t work because from what I understand, there is going to be other gadgets that people can fire using

1 Like

You need to make it first go to a counter, then make it remove gadget when counter reaches 3, and also resets the counter

If that is what @Next-Gen-Gims3652 is asking, then it can only done by removing ammo or gadgets for other gadgets before detection starts, since there is no way of knowing what the player is holding

So, how would I make it so it deletes it after 3 shots and not delete the other gadgets and items