• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Trigger] Kill Respawn Unit

Status
Not open for further replies.
Level 4
Joined
Feb 17, 2007
Messages
121
All Fix No Need To Help, I Found out How.


Okay I have a Mario Arena map and the spawn thing trigger just don't work right. I want the enemy's creatures when killed, well likely re spawn in like 10-15 seconds. And The trigger I have doesn't work right like when I kill a enemy's unit, it will re spawn in the region i set to, and there are other units that are in different places and when i kill those, those unit will come and re spawn in the spot where i had set the region.. Any help??

false trigger my next trigger had a little change

  • Goomba
    • Events
      • Unit - A unit Dies
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Unit-type of (Triggering unit)) Equal to Goomba Level 1
        • Then - Actions
          • Unit - Create 1 Goomba Level 1 for Player 7 (Green) at (Center of Goomba Set 1 <gen>) facing Default building facing degrees
        • Else - Actions
          • Do nothing
The Do Nothing part is nothing i messed up so i changed it to that.
So Anyone likely to help me?

My NEXT TRIGGER HELP THEY WONT SPAWN!

  • Goomba Copy
    • Events
      • Unit - A unit owned by Player 7 (Green) Dies
    • Conditions
      • And - All (Conditions) are true
        • Conditions
          • (Unit-type of (Dying unit)) Equal to Goomba Level 1
          • (Unit-type of (Dying unit)) Equal to Spiny Level 1
    • Actions
      • Wait 10.00 seconds
      • Unit - Create 1 (Unit-type of (Dying unit)) for Player 7 (Green) at (Position of (Dying unit)) facing 360.00 degrees
 
Last edited:
Level 4
Joined
Sep 5, 2009
Messages
62
All Fix No Need To Help, I Found out How.


Okay I have a Mario Arena map and the spawn thing trigger just don't work right. I want the enemy's creatures when killed, well likely re spawn in like 10-15 seconds. And The trigger I have doesn't work right like when I kill a enemy's unit, it will re spawn in the region i set to, and there are other units that are in different places and when i kill those, those unit will come and re spawn in the spot where i had set the region.. Any help??

false trigger my next trigger had a little change

  • Goomba
    • Events
      • Unit - A unit Dies
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Unit-type of (Triggering unit)) Equal to Goomba Level 1
        • Then - Actions
          • Unit - Create 1 Goomba Level 1 for Player 7 (Green) at (Center of Goomba Set 1 <gen>) facing Default building facing degrees
        • Else - Actions
          • Do nothing
The Do Nothing part is nothing i messed up so i changed it to that.
So Anyone likely to help me?

My NEXT TRIGGER HELP THEY WONT SPAWN!

  • Goomba Copy
    • Events
      • Unit - A unit owned by Player 7 (Green) Dies
    • Conditions
      • And - All (Conditions) are true
        • Conditions
          • (Unit-type of (Dying unit)) Equal to Goomba Level 1
          • (Unit-type of (Dying unit)) Equal to Spiny Level 1
    • Actions
      • Wait 10.00 seconds
      • Unit - Create 1 (Unit-type of (Dying unit)) for Player 7 (Green) at (Position of (Dying unit)) facing 360.00 degrees


Oh my goodness, i love you, i love you, i love you, bless you for this thread! :grin::grin::grin:
 
Level 4
Joined
Feb 17, 2007
Messages
121
Just a minor question what's best to use: dying unit or triggering unit? By the way you shouldn't use Do nothing, it takes power for nothing. Good luck with your map :)

Oh I used dying unit and it works. lmao

Dying unit doesn't work after wait

Dying Unit and after wait works for me( some reasons )

Oh my goodness, i love you, i love you, i love you, bless you for this thread! :grin::grin::grin:



How come is that?





My New Way Of Creep Respawn// WORKS 100%

  • Goomba
    • Events
      • Unit - A unit owned by Player 7 (Green) Dies
    • Conditions
      • And - All (Conditions) are true
        • Conditions
          • (Unit-type of (Dying unit)) Equal to Goomba Level 1
    • Actions
      • Wait 10.00 seconds
      • Unit - Create 1 (Unit-type of (Dying unit)) for Player 7 (Green) at (Position of (Dying unit)) facing 360.00 degrees
  • Spiny
    • Events
      • Unit - A unit owned by Player 7 (Green) Dies
    • Conditions
      • And - All (Conditions) are true
        • Conditions
          • (Unit-type of (Dying unit)) Equal to Spiny Level 1
    • Actions
      • Wait 10.00 seconds
      • Unit - Create 1 Spiny Level 1 for Player 7 (Green) at (Position of (Dying unit)) facing 360.00 degrees
 
Last edited:
Level 6
Joined
May 13, 2009
Messages
260
Unit - Create 1 (Unit-type of (Dying unit)) for Player 7 (Green) at (Position of (Dying unit)) facing 360.00 degrees

leaks
you need to create a point variable and set it to (Position of (Dying unit)) and then custom script - call RemoveLocation( udg_Variable_name )
You don't need and if there's only one condition.
 
Level 4
Joined
Feb 17, 2007
Messages
121
Unit - Create 1 (Unit-type of (Dying unit)) for Player 7 (Green) at (Position of (Dying unit)) facing 360.00 degrees

leaks
you need to create a point variable and set it to (Position of (Dying unit)) and then custom script - call RemoveLocation( udg_Variable_name )
You don't need and if there's only one condition.

oh i see hmm a variable what king of variable a unit or point? or whatt
 
Level 6
Joined
May 13, 2009
Messages
260
aleak_loc1 is a point variable.
  • Leak free
    • Events
      • Unit - A unit owned by Player 7 (Green) Dies
    • Conditions
      • (Unit-type of (Dying unit)) Equal to Footman
    • Actions
      • Set aleak_loc1 = (Position of (Dying unit))
      • Wait 10.00 seconds
      • Unit - Create 1 Footman for Player 7 (Green) at aleak_loc1 facing 360.00 degrees
      • Custom script: call RemoveLocation ( udg_aleak_loc1 )
 
Status
Not open for further replies.
Top