In the map, theres a choise which the player has 30 seconds to make. If all players have already chosen, its just annoying to sit through another 20 seconds. Ive collected all the players who've done their choise to a player group. How would i go about shortening the time?
Can you somehow compare the active players to the players whove done their choise?
Have a player group with all voting players at the beginning. Once a player votes, remove him from the group. Once the group is empty that equals to all players having voted, so you can simply check if the player group is empty to shorten the time.
And don't forget to remove a player from the group if that player leaves the game before voting has ended. Handling leavers properly is a pretty important part of making any map.
Certainly! You can optimize the waiting time by implementing a system that identifies the players who have already made their choice and proceed accordingly. By categorizing the active players who've made their choice into a separate group, you can significantly reduce the unnecessary waiting time for the rest. This would enhance the overall gameplay experience and prevent the annoyance of sitting through additional seconds. So, the key is to efficiently clean up the waiting period by distinguishing between players who've acted and those who haven't.
In the map, theres a choise which the player has 30 seconds to make. If all players have already chosen, its just annoying to sit through another 20 seconds. Ive collected all the players who've done their choise to a player group. How would i go about shortening the time?
Can you somehow compare the active players to the players whove done their choise?
Use a condition.
@hobbidude: Go
Can you compare player groups to eachother?
@Sendlirn: Go
Compare the number of players in each group
Have a player group with all voting players at the beginning. Once a player votes, remove him from the group. Once the group is empty that equals to all players having voted, so you can simply check if the player group is empty to shorten the time.
And don't forget to remove a player from the group if that player leaves the game before voting has ended. Handling leavers properly is a pretty important part of making any map.
Certainly! You can optimize the waiting time by implementing a system that identifies the players who have already made their choice and proceed accordingly. By categorizing the active players who've made their choice into a separate group, you can significantly reduce the unnecessary waiting time for the rest. This would enhance the overall gameplay experience and prevent the annoyance of sitting through additional seconds. So, the key is to efficiently clean up the waiting period by distinguishing between players who've acted and those who haven't.
All this is actually very interesting. Thanks to the author of the topic.