• 🏆 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 Event: Changing color of unit to target of casting

Status
Not open for further replies.
Level 4
Joined
Apr 28, 2016
Messages
33
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? :/
 
Status
Not open for further replies.
Top