• 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.

Dummy aura model effect unit does not follow the caster

Status
Not open for further replies.
Level 10
Joined
May 24, 2016
Messages
339
So, the things is, due to mode size of Vitz "Spell Marker TC", I created a dummy, gave him a model, changed vertex color and unit colour, and made a trigger command to follow the caster on a timer event via SetUnitX,SetUnitY

And guess what? Dummy model doesn't move at all.
Is it possible to fix that? I believe it may not be related with trigger commands.
 
Level 10
Joined
May 24, 2016
Messages
339
You can use a Special Effect if you're on 1.31+.

Anyway, you have to show us the trigger that moves it.
JASS:
// call echo(GetUnitName(f))
    set F = LoadUnitHandle(Hash,GetHandleId(f),StringHash("Radiance_radius"))
    //call echo(GetUnitName(F))
    call SetUnitX(F,GetUnitX(f))
    call SetUnitY(F,GetUnitY(f))
    call echo(R2S(GetUnitX(F)))
    call echo(R2S(GetUnitY(F)))

As you can See I debugged it, and GetUnitName shows me f as HERO caster, and F as dummy unit, and his X Y coordinates actually changing when I move, but the model itself stay on the same place. Does my dummy has some object ids that I should try to change?
 

Uncle

Warcraft Moderator
Level 73
Joined
Aug 10, 2018
Messages
7,877
JASS:
// call echo(GetUnitName(f))
    set F = LoadUnitHandle(Hash,GetHandleId(f),StringHash("Radiance_radius"))
    //call echo(GetUnitName(F))
    call SetUnitX(F,GetUnitX(f))
    call SetUnitY(F,GetUnitY(f))
    call echo(R2S(GetUnitX(F)))
    call echo(R2S(GetUnitY(F)))

As you can See I debugged it, and GetUnitName shows me f as HERO caster, and F as dummy unit, and his X Y coordinates actually changing when I move, but the model itself stay on the same place. Does my dummy has some object ids that I should try to change?
Maybe you need to change it's Movement Type. Also, test the SetUnitPosition() function as well.
 
Status
Not open for further replies.
Top