• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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