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

[Solved] Hero Selection does not work

Status
Not open for further replies.
Level 2
Joined
May 25, 2011
Messages
11
Hello,

So I'm pretty new to triggers, trying to make a hero selection but it does not work, here's the code:
  • slcRgn1
    • Events
      • Unit - A unit enters selectFootman <gen>
    • Conditions
    • Actions
      • Unit - Create 1 Footman for (Owner of (Triggering unit)) at (Center of Spawn <gen>) facing Default building facing degrees
      • Set plrUnit[(Player number of (Owner of (Triggering unit)))] = (Last created unit)
      • Unit - Remove (Triggering unit) from the game
      • Trigger - Turn off (This trigger)
What's the problem?
 
Level 11
Joined
Nov 15, 2007
Messages
800
The only thing I can see is it turns itself off after running once, meaning it will only work for a single player. If you have some other problem with it, it's not this trigger that's causing it.
 
Level 2
Joined
May 25, 2011
Messages
11
Hmm... Strange, the unit enters region and removes itself, but no one spawns at 1'st region.
 
Level 2
Joined
May 25, 2011
Messages
11
I will upload a map! Here it is:

*---* EDIT *---*

Removed attachement cause the probem is solved!
 
Last edited:
Status
Not open for further replies.
Top