• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

[Trigger] Hero selection pause until all have selected

Status
Not open for further replies.
Level 10
Joined
Apr 3, 2006
Messages
535
Im trying to make it so that, no one can move there hero until, everyone has selected a hero each. Is it possible to pause or take away player control until all players have selected?
 
i know the pause bit, im just unsure of the condition to use, to relase all players from puase once all players have a hero selected
 
Create a Integer var. Now when a player selects a hero, set that var to its value + 1 and check if its value is equal to the number of human players playing. If it is, unpause.

Notice that you must check for "current statues: is playing" and if it is a human player.
 
Status
Not open for further replies.
Back
Top