• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

Trigger Event: Changing color of unit to target of casting

Not open for further replies.
Level 4
Apr 28, 2016
I want to change my unit color when he casts a target-unit spell. Example, i use storm bolt id base order, when it cast to a target unit, the caster change color into the casting one. I try to triggering like this:
  • Change Color
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to Change Color
    • Actions
      • Set TempUnit = (Casting unit)
      • Set TempTarget = (Target unit of ability being cast)
      • Set TargetColor = (Color of (Owner of (TempTarget)))
      • Unit - Change color of TempUnit to TargetColor
But it doesn't change anything, anyone know how is the problem? :/
Not open for further replies.