- Joined
- Feb 28, 2007
- Messages
- 3,479
Hello, I'm trying to create a trigger that registers when a unit enters a region, then a text should be displayed, the problem is, it isn't.
Any help why nothing happens when a unit enters the region would be appreciated, thanks.
JASS:
globals
rect TriggerRect = gg_rct_Test
region TriggerRegion = CreateRegion()
boolean FirstSlope = false
endglobals
function Actions takes nothing returns nothing
call BJDebugMsg("Test")
endfunction
function Init takes nothing returns nothing
local trigger Trig = CreateTrigger()
call RegionAddRect(TriggerRegion,TriggerRect)
call TriggerRegisterEnterRegion(Trig,TriggerRegion,null)
call TriggerAddAction(Trig, function Actions)
endfunction