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

Why doesn't this work?

Status
Not open for further replies.
Level 10
Joined
Nov 28, 2008
Messages
655
  • Actions
    • Set C_Unit = (Random unit from Units[temp_player])
    • Set E_Player = (Random player from (All enemies of (Player(temp_player))))
    • Game - Display to (All players) the text: ((String((Player number of E_Player))))
    • Game - Display to (All players) the text: (Name of C_Unit)
E_Player comes out to be always 1, can't figure out why...

(the C_Unit always works...)
 
Level 10
Joined
Nov 28, 2008
Messages
655
these are just a piece of a huge blob of gui that i have, and i am just wondering why that one part ain't working...

HA, that is weird, played it in game and it worked...

thnx for advice, why does it do that?
 
Status
Not open for further replies.
Top