Summon question

ic3_water

Member
Reaction score
0
1.when i summon , my summoned unit does not attack enemy unit within it's attack range . It only attack if i take damage.
2.when my summoned attack enemy , i order it use spell on enemy (i only want it use auto cast debuff spell) . After 3-4 times it cast spell , it does not do anything , it seem stunned all time lìfe.
 

Stringel

New Member
Reaction score
12
if there's any triggers please show them. Look up acquisition range and priority for the summoned unit.
 

ic3_water

Member
Reaction score
0
if there's any triggers please show them. Look up acquisition range and priority for the summoned unit.

Code:
function Trig_AttackE_Conditions takes nothing returns boolean
        if ( not ( GetUnitAbilityLevelSwapped('A03M', GetAttacker()) == 1 ) ) then
        return false
    endif
    return true
endfunction

function Trig_AttackE_Actions takes nothing returns nothing
    local unit c = GetAttacker()
    local unit u = GetAttackedUnitBJ()
    call IssueTargetOrderBJ( c, "chainlightning", u )
    call SetUnitFacingToFaceUnitTimed( c, u, 0.2 )
    set c = null
    set u = null
endfunction

//===========================================================================
function InitTrig_AttackE takes nothing returns nothing
    set gg_trg_AttackE = CreateTrigger(  )
    call TriggerRegisterAnyUnitEventBJ( gg_trg_AttackE, EVENT_PLAYER_UNIT_ATTACKED )
    call TriggerAddCondition( gg_trg_AttackE, Condition( function Trig_AttackE_Conditions ) )
    call TriggerAddAction( gg_trg_AttackE, function Trig_AttackE_Actions )
endfunction

You can test Serpent Ward and Normal Summon skill . Serpent Ward alway find nearby enemy to attack and not stop it action but it can not turning it's face .
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top