GetTriggerUnit-
DogEntrepreneur
- Reaction score
- 129
JASS:
private function AddEvent takes nothing returns nothing
call TriggerRegisterUnitInRangeSimple(EventAdder, 900.00, GetConstructedStructure())
call BJDebugMsg("Happened")
endfunction
private function Init takes nothing returns nothing
local trigger t = CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(t, EVENT_PLAYER_UNIT_CONSTRUCT_FINISH)
call TriggerAddAction(t, function AddEvent)
endfunction
The debug msg does not show.