• 🏆 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] Replace problem

Status
Not open for further replies.
Level 2
Joined
Jul 1, 2007
Messages
8
Hi, i want to replace unit Victim (witch is a random unit owned by "Vampire" of type Victim) with Dracula. The problem is, that i can only change that unit with unit type, but i want to change it with Dracula witch is in map. I tried teleporting unit Dracula to unit A and A to Dracula spawn(Place where Dracula is hidden), but it gives a problem, because that can cause units to go thru buildings, witch i don't want to...
 
Level 35
Joined
Oct 9, 2006
Messages
6,392
Move instantly.....

  • Events
    • Unit - is effectet by an ability
  • Conditions
    • Ability being cast equal to Bite
  • Actions
    • set Dracula spot to (position of dracula)
    • set Victim spot to (position of victim)
    • Unit - Move (Dracula) instantly to Victim spot
    • Unit - Move (Victim) instantly to dracula spot
    • Unit - change owner of (dracula) to (owner of victim)
    • Unit - change owner of (victim) to passive
The owner change commands I added if needed.... but this would do the trick. If victim isnt supposed to be moved to draculas position just move him somewhere else...
 
Status
Not open for further replies.
Top