Building that spawns units

Avaleirra

Is back. Probably.
Reaction score
128
Hi people,

How can I make a building that spawns units every.... lets say 4 seconds?


Thanks,
Ava

(Thanks in Advance!):thup:
 

wellwish3r

wishes wells.
Reaction score
52
Either u Make a periodic trigger that spawns a unit at every building of a certain type every 4 seconds.

Or you use the Factory ability, and alter it the way you want it to be.
 

Avaleirra

Is back. Probably.
Reaction score
128
I want to do the trigger thing.... but im new to the editor. Could you give me an example?

Thanks :)
 

Scorpions

New Member
Reaction score
12
Trigger:
  • Events
    • Time - Every 0.04 seconds
    • Conditions
    • Actions
    • Unit - Create 5 for Player UnitCreep in Point facing FacePoint


5 is the cantity of the creeps to create
Player is the owner of the units will be created
UnitCreep is the unit type of the creeps spawning
Point is the site to be created the creeps
FacePoint is the angle to face for the creeps created

All of this you can change

Note: I hasn't open the World edit, so, i hasn't sure if the words is correctly written
 

saickododge

New Member
Reaction score
2
Do this trigger:

Event:
Time - Every 4 seconds of game time
Conditions:
Actions:
Unit -Create 4 footman for Player 1 (Red) at ((Center of (X Region)) facing default building facing degrees

Hope this helps
 

CYRRIC

Active Member
Reaction score
3
even if you are new they forgot to tell you something

if you create unit with a simple trigger like this this will work no prob

but if you make too many unit with this your map will lag cause everytime you create a unit a litle information spawn with the unit and doesn't remove itself

so if you create many unit when unit die point still stay so they accumulate and the map lag, done for the explication

if you want to make a great trigger that will not lag use a point variable like explain here :


http://anima.forumactif.com/declancheur-f10/cree-des-variables-t11.htm
 

Squirel

New Member
Reaction score
13
You do realize that the link you posted is in French?

If you want to see the website that he posted in English, the Google translator should work provided there is no French Leetspeak there...
 

Ayanami

칼리
Reaction score
288
I think CYRRIC is trying to say it causes leaks. Then simply do this.

Trigger:
  • Spawn
    • Events
      • Time - Every 4.00 seconds of game time
    • Conditions
    • Actions
      • Set TempPoint = [Your location where you want your units to spawn]
      • Unit - Create 4 Footman for Player 1 (Red) at TempPoint facing Default building facing degrees
      • Custom script: call RemoveLocation(udg_TempPoint)


Just set the variable TempPoint to the location where you want your units to spawn.
 

Chao

Setting sail for fail in the sea of lame.
Reaction score
63
Oh, and you can find Custom Script near the top of the Actions section. Copy what Glenphir wrote in word for word; it's case-sensitive!

Aaaand lastly, if you'd like to post recognition of those who've helped you, in the top-right corner of our posts, that little scale will allow you to "add rep", which will make us look better. :D

Tutorials: http://www.thehelper.net/forums/forumdisplay.php?f=90
 

CYRRIC

Active Member
Reaction score
3
yeah glenphir you are right this what i wanted to say now in all my map when i create unit by trigger i build my trigger like this i have also make corection with tome bying on a previous post i realy don't like bug or lag
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top