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

Spawning Players

Status
Not open for further replies.
Level 1
Joined
Sep 18, 2010
Messages
2
hi

how do i get the game to only spawn a creature for players WHO are actually there? as in, human players? cos the NPC players keep spawning anyway

thnx
 
Level 2
Joined
Sep 26, 2010
Messages
12
A trigger can resolve this...

Player Group - Pick every player in (All players matching (((Matching player) controller) Equal to User)) and do (Actions)

Now, if you want to give new units to every player in this group, you can, or you can give them randomly to any one member. This function in a trigger will differentiate user players from non-user ones. At least, it should. If this doesn't work, then try this instead...

Player Group - Pick every player in (All players matching (((Matching player) slot status) Equal to Is playing)) and do (Actions)
 
Status
Not open for further replies.
Top