Respawn problem

ianu74

New Member
Reaction score
8
I placed this triggers on my map, yet some mobs don't respawn.
Code:
Respawn Initial
    Events
        Map initialization
    Conditions
    Actions
        Set TmpInteger = 1
        Unit Group - Pick every unit in (Units in (Playable map area) owned by Neutral Hostile) and do (Actions)
            Loop - Actions
                Set CreepPosition[TmpInteger] = (Position of (Picked unit))
                Set graveyardunits[TmpInteger] = (Unit-type of (Picked unit))
                Unit - Set the custom value of (Picked unit) to TmpInteger
                Set TmpInteger = (TmpInteger + 1)
Code:
Respawn
    Events
        Unit - A unit owned by Neutral Hostile Dies
    Conditions
        ((Dying unit) is Summoned) Equal to False
        (Custom value of (Dying unit)) Greater than or equal to 1
    Actions
        Wait (Random real number between 30.00 and 40.00) seconds
        Unit - Create 1 graveyardunits[(Custom value of (Dying unit))] for Neutral Hostile at CreepPosition[(Custom value of (Dying unit))] facing (Random angle) degrees
        Unit - Set the custom value of (Last created unit) to (Custom value of (Dying unit))
Some of the units just die and never respawn. Why?
 

esb

Because none of us are as cruel as all of us.
Reaction score
329
Event response actions (Like Triggering unit, or dying unit) are lost after waits.
Meaning, if two or more units die withing the 30-40 seconds range, only 1 will revive (latest)
 

esb

Because none of us are as cruel as all of us.
Reaction score
329
If it's true, that means that it will only survive summoned units with custom value of 1 or higher.
 

vypur85

Hibernate
Reaction score
803
The trigger seems fine to me. It should work. Are the creeps pre-placed in the map? Are the creeps indeed Neutral Hostile?

Or, does the creep leaves corpse behind? Can they decay? What is the decay time (make sure it is more than 40 seconds)?
 

AceHart

Your Friendly Neighborhood Admin
Reaction score
1,495
> Some of the units just die and never respawn

Like Revenants or other units that don't leave a corpse?


> Event response actions (Like Triggering unit, or dying unit) are lost after waits.

Nonsense.

"Triggering unit" is rock-stable. As is "Dying unit".
 

Tinki3

Special Member
Reaction score
418
Event response actions (Like Triggering unit, or dying unit) are lost after waits.
Meaning, if two or more units die withing the 30-40 seconds range, only 1 will revive (latest)
False.
Triggering unit is extremely stable and is fully MUI.
Dying unit should also be as stable.

The problem here likely has something to do with things pointed out in vypur85's previous post.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      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