How do I make a player drop everything

What I’m trying to do is make a player drop everything in their inventory when they are knocked out, is this possible?

When a player is knocked out and drops all their items, other players should be able to pick up the items they dropped (kind of like Fortnite)

To be more specific, I have a game where each player has a key, and when they are knocked out, they drop all the keys they have. Whoever has all the keys in the end wins.

Help would be very appreciated.

1 Like

I dont know if this is possible but i will experiment with a few things and see if i can figure it out

1 Like

Note: I will only be describing how to get this system to work if you can hold a max of one of each item. If you want to hold more, just ask. Step one is to have the game recognize that a player was knocked out by a gadget. As such, pull out a lifecycle[1] and set it to “player knocked out”. Next, place down inventory item managers[2], one per item you want to have in the game. Have them activate for that player when the player is knocked out, and have them limit the amount of an item the player can hold to one.[3] After that, you will need a row of checkers, one for each item, that all run at the same time. Each checker should check if the player has the item it’s checking for. If not, then do nothing. But if so, then grant the player another one of the items.[4] Because the IIMs are already active, this will cause the items to pop up around the player instead of in their inventory. Finally, have a team switcher receive on the wire/channel that the lifecycle transmitted on that switches the players team to spectator. That method I described above should work, but if it doesn’t, just ask for help![5]


  1. Replace with KO manager if settings are wrong ↩︎

  2. IIMs for short. ↩︎

  3. Alternatively, you could just keep the IIMs on at all times, so players would have to deal with a limited inventory. Fun concept! ↩︎

  4. This is done using a system like checker → item granter. ↩︎

  5. If your players can hold multiple items at once, I think a different system involving prime factorization could work. ↩︎

6 Likes

Ok thank you, I will try this out

2 Likes