• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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