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

Need Help with a trigger

Status
Not open for further replies.
Level 3
Joined
Dec 3, 2011
Messages
18
Hi Guys, I was creating a Custom map today when I decided to add some cinematic triggers, but I've soon faced a problem.
How can I make an event happen (Unit spawn, for ex.) when a Unit Enters a Specific Region JUST ONCE?

I wanted a unit to spawn on Region 2 when my unit walked on Region 1, but I've seen that for every unit passing on region 1 the spawn number is equal to passing units' number, and it also happens every time a unit, or group, is passing!

:goblin_jawdrop:
 
Well, to limit who the trigger will fire for, you simply need to add a condition:
  • Region
    • Events
      • Unit - A unit enters Region 1 <gen>
    • Conditions
      • (Unit-type of (Entering unit)) Equal to Footman
    • Actions
Replace "Footman" with the unit type that you want your trigger to fire for. You can also just change it to "Entering unit Equal to <MyHero>" if you want it to only happen for one unit.

If you want the trigger to only occur once, then in the "Actions" part, you simply put
  • Trigger - Turn off (This trigger)
Good luck. I don't know if these function names are exact, but they should be close enough.

EDIT: This also belongs in a different forum. You can post this in the World Editor Help Zone next time.
 
Status
Not open for further replies.
Top