• 🏆 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!

Replacing all units of type x

Status
Not open for further replies.
Level 8
Joined
Feb 2, 2013
Messages
97
Hello guys :D

So, after a certain event happend (player red is not allied to player blue anymore) i want a periodic event just for reds units where every 5 min all units of the type (for example) footman are replaced by zombies.

I used the command
UnitGroup - Pick every unit in (Units owned by Player 1 (Red) of type Footman) and do (Unit - Replace (Matching unit) with a Zombie using New Unit: Standard - life and mana)

I allready tryed out Triggering unit instead of matching unit and so on, but it still doesent work, what do i do wrong? :D

all the best,
josch
 
Level 28
Joined
Mar 25, 2008
Messages
2,955
'Matching Unit' only refers to a 'Unit matching condition'-condition.
Use this:

  • Custom script: set bj_wantDestroyGroup = true
  • Unit Group - Pick every unit in (Units owned by Player 1 (Red) of type Footman) and do (Unit - Replace (Picked Unit) with a Zombie using New Unit: Standard - life and mana)
to have it leakless.
 
Status
Not open for further replies.
Top