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

[Trigger] Unit Spawn

Status
Not open for further replies.
Level 3
Joined
Aug 24, 2007
Messages
33
Alright, I'm trying to create a spawning map it goes like this:

You first pick a summoner, Undead, Night elf, human, orc, demon, or naga.

Then you get that summoner in a area with 2 units, say Night elf for starters.

You have an option between a treant and a archer.

How do I make it so if I move the summoner on the circle it will start spawning that unit. Then if the summoner goes off it will stop.

So far i have this:

Time- Every 5.00 seconds of game time.

Treant <gen> contains (What do i put here) equals to true

Create 1 Treant for owner of triggering unit at owner of triggering units start location.

Help! :witch_doc_sad:
 
Level 6
Joined
Jan 2, 2007
Messages
189
ok, i dont have the editor in front of me but it would go something like this:
Events-
Time: every 5 seconds of game time
Conditions-
Region: if <region> contains <unit> (your unit summoner) equal to true
Actions: Unit: create 1 Treant/Archer for <player> start location.

This should work, but i think you will need a new and identical trigger for each player though.
 
Level 3
Joined
Aug 24, 2007
Messages
33
Nope

Doesnt seem to work, I can't get the Night elf summoner Unit type in there. only specific units.

Do i have to create unit group for it?
 
Last edited:
Level 6
Joined
Jan 2, 2007
Messages
189
Just set the your Night Elf summoner as a variable (Player_Unit_Spawner). So instead your conditions would look like this:

Conditions-
Region: If Player 1 Unit Spawner <gen> contains (Player_Unit_Spawner[1]) equal to true

-You can set the variable to an array to include all players.
 
Status
Not open for further replies.
Top