• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

How to spawn unit from demon portal

Status
Not open for further replies.
Level 2
Joined
May 18, 2018
Messages
12
So I want to create a Demon Portal that spawns all sort of unit and attack the player, but still had a limit on how much and how often they spawn. Work like in the blood elf campaign Gates of the Abyss
 
Wasn't it done with a simple, periodic unit spawn trigger?

If I were you, I would try this and see how it works in practice. Just remember to clear up leaks.
 
Last edited:
As long as one periodically clears a unit group or removes units from it on their death, you can track all the units spawned using that single unit group.

To spawn a variety of units randomly one can use either an if then else decision tree or an array fed system that takes weights and unit types and quantities. Both would roll a single random number per spawning.

If the unit group contains less than the maximum number of spawned units then spawn more units and add them to the unit group. This is done periodically.

Either give the units to an AI player and let the AI order them around to attack players, or periodically order all units in the unit group to attack a point near an enemy player.
 
Status
Not open for further replies.
Back
Top