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

all players

Status
Not open for further replies.

xplicitjohn

X

xplicitjohn

er..

how can i make units spawn for only in game players?
 
Level 13
Joined
Sep 14, 2008
Messages
1,408
At the beginning of the game:

Event: Elasped time is 0.01
Condition: -
Action: For Integer 1 - 12 Do actions:
If(Player(PlayerNumberToPlayer(Integer a) is playing = true)
Then
(Add Player(PlayerNumToPlayer(Integer a) to "PlayingPlayers") <- a unit group

Later on you can always address the "PlayingPlayers"
 
Level 9
Joined
Jul 11, 2009
Messages
294
You can put Variable name as Players
then Variable Type as Player Group
then

  • Check if players is playing
    • Events
      • Map Initialization
    • Conditions
      • None
    • Actions
      • Player Group - Pick every player in (All players matching ((Picked Player) slot status)Equal to playing) and do (Player group - Add (Picked player) to Players)
Then spawn units for players in the player group.
 
Status
Not open for further replies.
Top