• 🏆 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!

[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