Implementing a Voting System for Weapon Spawns in Game

Hello Unreal Engine Community,

I’m currently diving into a new aspect of my game’s development and I could really use your collective expertise. I’m looking to implement a voting system that allows players to vote on the weapons that will be spawned on the map. The twist is, I want the outcome of the vote to influence which weapons appear in the item spawners scattered across the map, rather than directly adding the weapons to the players’ inventories.

Here’s what I’m envisioning:

  • Before the game starts, players are presented with a set of weapon options to vote on.
  • Based on the majority vote, the selected weapons are the ones that will be available in the item spawners for that round or game session.
  • This system should dynamically adjust the available weapons in the item spawners based on the voting outcome.

I’m not entirely sure how to approach the creation of this voting system, especially in terms of linking the voting results to the configuration of the item spawners. Does anyone have experience with something similar or any advice on how to set this up? I’d greatly appreciate any suggestions on tools, blueprints, or logic that could facilitate this system.

Thank you in advance for any guidance you can provide!

I’ll rave on about how I reckon a coarse voting system would go,

Say a bunch of switches to choose which weapons are available, from a bunch of seperate Item Spawners, Item Spawner set A, Item Spawner set B and Item Spawner set C.
Not really a voting system but a battle for “last switch standing” before time runs out.

When Switch A is switched, it turns off Switch B & Switch C, it also Enables Item Spawner set A and Disables both Item Spawner sets B & C.

Switch B & C do the same but for thier respective set

For the case of no one touching a switch, Switch A & Item Spawner set A start out Enabled, the rest Disabled.

For a more complex voting system their is a Verse Snippet and a Youtube video on its use by Imaginary, you may be able to replace the Class loadout with enabling the desired Item Spawners

1 Like