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

[Solved] Create Spectator Slot?

Status
Not open for further replies.
Level 5
Joined
Dec 15, 2010
Messages
115
I have been working with the AI a lot, and I need to spectate them. While I can make myself a player with no units to watch, I can't spectate like you can with the editor (Which I can't use because it has custom units). So I can't see things like specific units/researches being trained, current gold/lumber/etc.

Is there a way to make player 1 a spectator so I can watch the AI do it's stuff?
 
Level 13
Joined
Mar 24, 2013
Messages
1,105
here is how to make observers in game.
  • Observer
    • Events
      • Player - Player 1 (Red) types a chat message containing -obs as An exact match
      • Player - Player 2 (Blue) types a chat message containing -obs as An exact match
      • Player - Player 3 (Teal) types a chat message containing -obs as An exact match
      • Player - Player 4 (Purple) types a chat message containing -obs as An exact match
      • Player - Player 5 (Yellow) types a chat message containing -obs as An exact match
      • Player - Player 6 (Orange) types a chat message containing -obs as An exact match
      • Player - Player 7 (Green) types a chat message containing -obs as An exact match
      • Player - Player 8 (Pink) types a chat message containing -obs as An exact match
      • Player - Player 9 (Gray) types a chat message containing -obs as An exact match
      • Player - Player 10 (Light Blue) types a chat message containing -obs as An exact match
      • Player - Player 11 (Dark Green) types a chat message containing -obs as An exact match
      • Player - Player 12 (Brown) types a chat message containing -obs as An exact match
    • Conditions
    • Actions
      • Set tempTrigPlayer = (Triggering player)
      • Custom script: call SetPlayerState( udg_tempTrigPlayer, PLAYER_STATE_OBSERVER, 1)

You could try this I'd assume it works
 
Status
Not open for further replies.
Top