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 and set it to “player knocked out”. Next, place down inventory item managers, 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. 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. 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!
6 Likes
Ok thank you, I will try this out
2 Likes