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

[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
781
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