D
dem0n
Guest
I have tried several methods to make my creeps, once killed, respawn where they are originally set on the map. None seem to work.
I tried setting their rally-point to their current position, then have a trigger that creates a new unit at that point, but nothing happens. I can do the if I unit dyes repace <triggering unit> with a unit type of <triggering unit>, but that only puts the creep where it died at, not where it's suppose to be starting from.
this is the exact code I'm using
in melee init:
Unit Group - Pick every unit in (Units owned by Neutral Hostile) and do (Unit - Set Rally-Point for (Picked unit) to (Position of (Picked unit)))
trigger:
Event - Unit - A unit owned by Neutral Hostile Dies
Action - Wait 10.0 seconds
Unit - Create 1 (Unit-type of (Triggering unit)) for (Owner of (Triggering unit)) at (Rally-Point of (Triggering unit) as a point) facing Default building facing degrees
-----------
and yes, triggering unit works just fine, dont have to use dying unit, cause if I replace rally-point of (triggering unit) to unit location of (triggering unit) it will spawn the creep where it died.
Any ideas?
I tried setting their rally-point to their current position, then have a trigger that creates a new unit at that point, but nothing happens. I can do the if I unit dyes repace <triggering unit> with a unit type of <triggering unit>, but that only puts the creep where it died at, not where it's suppose to be starting from.
this is the exact code I'm using
in melee init:
Unit Group - Pick every unit in (Units owned by Neutral Hostile) and do (Unit - Set Rally-Point for (Picked unit) to (Position of (Picked unit)))
trigger:
Event - Unit - A unit owned by Neutral Hostile Dies
Action - Wait 10.0 seconds
Unit - Create 1 (Unit-type of (Triggering unit)) for (Owner of (Triggering unit)) at (Rally-Point of (Triggering unit) as a point) facing Default building facing degrees
-----------
and yes, triggering unit works just fine, dont have to use dying unit, cause if I replace rally-point of (triggering unit) to unit location of (triggering unit) it will spawn the creep where it died.
Any ideas?


