^ You are wasting the create unit. Just use Hero - Revive Unit.
im pretty sure hero - revive unit still revives units. not just heroes.
Oh... looks like I misunderstood again; it's just that the Hero - Revive Hero is in the Hero Category of the available Actions in the Trigger Editor's GUI interface so I though it just revived heroes but I guess I was wrong... thanks for pointing that out though =)
^ Now, I agree with you.
UNIT_TYPE_HERO
units. and besides,there is no such type for a hero.Condition and wait is optional. But of course you need to fix the point leak and null it.
- Neutral Hostiles
- Events
- Unit - A unit owned by Neutral Hostile Dies
- Conditions
- (((Dying unit) is A Hero) Equal to False)
- Actions
- Wait 15.00 seconds
- Unit - Create 1 (Unit-type of (Triggering unit)) for Neutral Hostile at (Position of (Triggering unit)) facing Default building facing degrees
^ Oh in this case do this:
I haven't tested this out myself and the working trigger might now actually look like this because I only typed it based on sheer memory. But this should work. If it doesn't well I'll just create one in the Editor again and test that trigger, and post the working trigger in the event that the trigger I posted here does not work.
- Save the Positions
- Events
- Map Initialization
- Conditions
- Actions
- Unit Group - Pick every Unit owned by Neutral Hostile and Do (Actions)
- Loop - Actions
- For Each Integer Variable from 1 to (Number of Units owned by Neutral Hostile), Do (Actions)
- Set Point[Integer_Variable] = Position of Picked Unit
(I'm getting lazy these days sorry)
^ Oh in this case do this:
I haven't tested this out myself and the working trigger might now actually look like this because I only typed it based on sheer memory. But this should work. If it doesn't well I'll just create one in the Editor again and test that trigger, and post the working trigger in the event that the trigger I posted here does not work.
- Save the Positions
- Events
- Map Initialization
- Conditions
- Actions
- Unit Group - Pick every Unit owned by Neutral Hostile and Do (Actions)
- Loop - Actions
- For Each Integer Variable from 1 to (Number of Units owned by Neutral Hostile), Do (Actions)
- Set Point[Integer_Variable] = Position of Picked Unit
(I'm getting lazy these days sorry)