function Trig_Track_Func001Func001C takes nothing returns boolean
if ( not ( GetTriggeringTrackable() == Track[GetForLoopIndexA()] ) ) then
return false
endif
return true
endfunction
function Trig_Track_Actions takes nothing returns nothing
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 999
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
if ( Trig_Track_Func001Func001C() ) then
call DestroyTextTagBJ( udg_TrackText )
call CreateTextTagLocBJ( udg_TrackString[GetForLoopIndexA()], GetRectCenter(GetPlayableMapRect()), 0, 10, 100, 100, 100, 0 )
set udg_TrackText = GetLastCreatedTextTag()
else
endif
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
endfunction
//===========================================================================
function InitTrig_Track takes nothing returns nothing
set gg_trg_Track = CreateTrigger( )
call TriggerAddAction( gg_trg_Track, function Trig_Track_Actions )
endfunction