Ardenian
A
Ardenian
I add and remove the 'Amov' to interrupt a point order of a unit.
However, appearently it cannot be re-added.
Am I right or did I miss something ? Is there a way to avoid this ?
Is there another way to permanently remove movement
( note, I tried using the object editor, however, other issues came up, so I
need a solution without touching the Object Editor, please)
or to interrupt an order ?
Appearently
does not stop the unit from executing the order if in the trigger action of the event.
JASS:
call UnitRemoveAbility(u, 'Amov')
call SetUnitFacingTimed(u, angle, duration)
call UnitAddAbility(u, 'Amov')
However, appearently it cannot be re-added.
Am I right or did I miss something ? Is there a way to avoid this ?
Is there another way to permanently remove movement
( note, I tried using the object editor, however, other issues came up, so I
need a solution without touching the Object Editor, please)
or to interrupt an order ?
Appearently
JASS:
function
call IssueImmediateOrder(u,"stop")
call SetUnitFacingTimed(u, angle, duration)
endfunction
//
call TriggerRegisterUnitEvent( gg_trg_Order, u, EVENT_UNIT_ISSUED_POINT_ORDER )