Respawn

Holygiant

Active Member
Reaction score
1
I know how to make a spawn, but what's the spawn trigger so that when the creatures die, 60 seconds later they will respawn.
I know this is a noob question...
Incase you didn't understand...
Say there's two kobolds in a region.
A hero runs up and kills the kobolds.
60 seconds later, they will respawn.
But I don't want the spawn to overload, I just want those two.
Understand?:nuts:
 

Holygiant

Active Member
Reaction score
1
I'd really rather not go through a full tutorial. Besides, that doesn't tell me the code for one region, it tells me the code for the whole map...
 

FireBladesX

Eating my wings!
Reaction score
123
If you want just one region, do:

E:Unit dies

C: Unit type of Dying Unit equal to Kobold

A:
Wait 60 seconds
Unit - create 1 Unit type of Triggering Unit at Random Point in KoboldRegion

But, that tutorial's pretty good. Just for future maps, I guess. =|
 

Dameon

"All the power in the world resides in the eyes"
Reaction score
127
Code:
Untitled Trigger 001
    Events
        Unit - A unit Dies
    Conditions
        (Unit-type of (Dying unit)) Equal to Footman
        ((Playable map area) contains (Dying unit)) Equal to True
    Actions
        Wait 60.00 seconds
        Unit - Create 1 (Unit-type of (Triggering unit)) for Neutral Passive at (Center of (Playable map area)) facing Default building facing degrees

Edit, just changed footman to your unit and playable map area to your region.

Ps. this trigger will not revive the unit if it chases some thing out of the region and is then kill out side that region.
 
General chit-chat
Help Users

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top