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

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