• 🏆 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] Creep Spawn Help

Status
Not open for further replies.
Level 1
Joined
Mar 9, 2016
Messages
3
I created 2 separate spawn points on my map that spawn a certain unit after that same unit dies. I originally was using the wait trigger before spawning, but was running into issues with that, so I started using a timer. The triggers work, but they do not start spawning until I get near the spawn point. That's where my problem lies.

Here are my triggers.

Event:
Unit-a unit owned by Player 12 dies

Condition:
(Creep Spawn Area <gen> contains (triggering unit)) Equal to true

Action:
Countdown Timer - Start creepTimer as a One-shot timer that will expire in 2.00 seconds

----------------------------------------------------------------------------

Event:
Time-creepTimer expires

Condition:
(Creep Habitat 0045 <gen> is alive) Equal to True

Action:
- Unit-Create 5 (Unit-type of Creep 0059 <gen>) for Player 12 at (Center of Creep Spawn Point <gen>)facing(random angle) degrees

-Unit-Order (last created unit) to attack-move to (random point in Creep Spawn Area <gen>)

Thanks for your help!
 
Level 11
Joined
Oct 9, 2015
Messages
721
What about setting the dying unit in an variable, then creating a dummy unit and add experation time to it, then when it dies you create a unit type of unit stored in variable ? This solution may work for your triggers too, Malthe22! Give it a try maybe this works!
 
Level 3
Joined
Mar 6, 2016
Messages
29
What about setting the dying unit in an variable, then creating a dummy unit and add experation time to it, then when it dies you create a unit type of unit stored in variable ? This solution may work for your triggers too, Malthe22! Give it a try maybe this works!

No need for me. The trigger works just as I need
 
Level 1
Joined
Mar 9, 2016
Messages
3
Thanks all! The creep units are dying within their designated regions. However, the trigger doesn't start working until I'm closer to the spawn point. It's really odd.
 
Level 1
Joined
Mar 9, 2016
Messages
3
To clarify, I have two regions: a spawn area and a spawn point. The creep dies in the "spawn area", but they are not spawning until I am in view of the "spawn point".
 
Status
Not open for further replies.
Top