HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Trigger Not Working

07-13-2005, 05:32 AM#1
Toast.Theif
Code:
function Trig_Store_Initialization_Func001A takes nothing returns nothing
    call UnitAddAbilityBJ( 'A005', GetTriggerUnit() )
    call UnitAddAbilityBJ( 'A003', GetTriggerUnit() )
    call UnitAddAbilityBJ( 'Awan', GetTriggerUnit() )
endfunction

function Trig_Store_Initialization_Actions takes nothing returns nothing
    local group tempGroup
    set tempGroup = GetUnitsInRectAll(gg_rct_Solider_Store)
    call ForGroupBJ( tempGroup, function Trig_Store_Initialization_Func001A )
    call DestroyGroup(tempGroup)
endfunction

//===========================================================================
function InitTrig_Store_Initialization takes nothing returns nothing
    set gg_trg_Store_Initialization = CreateTrigger(  )
    call TriggerRegisterTimerEventSingle( gg_trg_Store_Initialization, 5 )
    call TriggerAddAction( gg_trg_Store_Initialization, function Trig_Store_Initialization_Actions )
endfunction

Basically, it does nothing...
made the trigger, converted it to custom text, then did the tempGroup thing so I could clean up the leak and then tested it. It worked b4 I converted to JASS and did all the leak cleaning up tho...
07-13-2005, 05:44 AM#2
weaaddar
Its not triggering unit, its pickedunit or something. (I don't remember )
07-13-2005, 05:54 AM#3
Toast.Theif
wow, I am really stupid somtimes ><

GetEnumUnit(), btw