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

Noob Asking

Status
Not open for further replies.
Level 8
Joined
Feb 20, 2007
Messages
338
There is no "spawn" action in GUI.

There is create unit which is what you would need.

Assuming you have two regions B 01 and B 02 where a unit enters B 01 and a footman is created in B02:

  • Region Spawn
    • Events
      • Unit - A unit enters B 01 <gen>
    • Conditions
    • Actions
      • Unit - Create 1 Footman for Player 1 (Red) at (Center of B 02 <gen>) facing Default building facing degrees
Mind this leaks - it has set a point which will remain there unless we tag the point with a variable then remove the point later on. At the top of the Trigger GUI forum there is a sticky on leaks, one is advised to learn those few basic leak controls for things like creating units and unitgroups. It will save a lot of headaches later down the road.
 
Level 19
Joined
Aug 24, 2007
Messages
2,888
lol Your trigger will spawn 999999999999999999999999999 units
add Disable This Trigger - Enable This Trigger

Edit: Ops 2 different regions... My bad
 
Level 8
Joined
Feb 20, 2007
Messages
338
you are totally right it would be just pain to make someone new remove leaks

Instead of telling them or giving it to them, instead I direct the OP to the stickies where (hopefully) they will learn far much more from reading those than I could possibly cover in one post.



lol Your trigger will spawn 999999999999999999999999999 units
add Disable This Trigger - Enable This Trigger

Edit: Ops 2 different regions... My bad

Perhaps I should have made that clearer using:

BRAVO OSCAR ONE and CHARLIE PAPA TWO
 
Status
Not open for further replies.
Top