• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[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,394
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