Dummy aura model effect unit does not follow the caster

Status
Not open for further replies.
Level 10
Joined
May 24, 2016
Messages
357
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.
 
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?
 
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.
Back
Top