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

Display list of observers, how?

Status
Not open for further replies.
Level 30
Joined
Feb 18, 2014
Messages
3,623
  • Detect Observer
    • Events
      • Player - Player 1 (Red) types a chat message containing -observer as An exact match
    • Conditions
    • Actions
      • Custom script: if GetPlayerState(Player(0),PLAYER_STATE_OBSERVER) > 0 then
      • Game - Display to (All players) the text: Player 1 (Red) is an Observer
      • Custom script: endif
  • Detect Observer Group
    • Events
      • Player - Player 1 (Red) types a chat message containing -observerGroup as An exact match
    • Conditions
    • Actions
      • For each (Integer A) from 1 to 24, do (Actions)
        • Loop - Actions
          • Custom script: if GetPlayerState(ConvertedPlayer(GetForLoopIndexA()),PLAYER_STATE_OBSERVER) > 0 then
          • Game - Display to (All players) the text: ((Name of (Player((Integer A)))) + is an Observer)
          • Custom script: endif
 
Last edited:
Status
Not open for further replies.
Top