Warcraft 3 Triggers: Need help ordering a computer to cast a custum ability?
function Trig_Rashok_Actions takes nothing returns nothing
local unit attacker = GetAttacker()
call TriggerSleepAction(2.00)
call IssueTargetOrder(gg_unit_U000_0020, "fingerofdeath", attacker)
set attacker = null
endfunction
//================================================== =========================
function InitTrig_Rashok takes nothing returns nothing
set gg_trg_Rashok = CreateTrigger( )
call TriggerRegisterUnitEvent( gg_trg_Rashok, gg_unit_U000_0020, EVENT_UNIT_ATTACKED )
call TriggerAddAction( gg_trg_Rashok, function Trig_Rashok_Actions )
endfunction
Tha'ts what I have. I set the ordersting on/off to "fingerofdeath" and I set the activate orderstring to "fingerofdeath" aswell.
My problem involves the unit "Rashok" not casting Finger of Death at my Hero. Also, I set targets allowed for Fingerofdeath to "Heroes".
Any help would be awesome.
Those who have accounts on The Helper forum can find my question there by using "Advanced Search" and type "penultimate".
Hero is meant to be attacker.
|