• 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.

[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?
 
Level 10
Joined
Apr 3, 2006
Messages
535
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
 
Level 29
Joined
Jul 29, 2007
Messages
5,174
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.
Top