- Joined
- Oct 14, 2008
- Messages
- 340
Okay this is driving me absolutely crazy.
I'm trying to work with regions here, and I have a code setting up 3 regions, but only one region is actually effectively created (the first).. Completely stumped as to why this is happening.
The code:
Anyone know what exactly the issue is here? I'm pullin my hair out.
I'm trying to work with regions here, and I have a code setting up 3 regions, but only one region is actually effectively created (the first).. Completely stumped as to why this is happening.
The code:
JASS:
library RegionCreation initializer init
globals
region DWT_REGION = null
region GE_PREBOSS_REGION = null
region GE_REGION = null
endglobals
private function RegionSetup takes nothing returns nothing
set DWT_REGION = CreateRegion()
call RegionAddRect(DWT_REGION, gg_rct_DWT1)
call RegionAddRect(DWT_REGION, gg_rct_DWT2)
call RegionAddRect(DWT_REGION, gg_rct_DWT3)
call RegionAddRect(DWT_REGION, gg_rct_DWT4)
set GE_PREBOSS_REGION = CreateRegion()
call RegionAddRect(GE_PREBOSS_REGION, gg_rct_GE1)
call RegionAddRect(GE_PREBOSS_REGION, gg_rct_GE2)
call RegionAddRect(GE_PREBOSS_REGION, gg_rct_GE3)
set GE_REGION = CreateRegion()
call RegionAddRect(GE_PREBOSS_REGION, gg_rct_GE1)
call RegionAddRect(GE_PREBOSS_REGION, gg_rct_GE2)
call RegionAddRect(GE_PREBOSS_REGION, gg_rct_GE3)
call RegionAddRect(GE_PREBOSS_REGION, gg_rct_GE4)
endfunction
private function init takes nothing returns nothing
local trigger regs = CreateTrigger( )
call TriggerRegisterTimerEventSingle(regs, 0.5)
call TriggerAddAction(regs, function RegionSetup)
endfunction
endlibrary
Anyone know what exactly the issue is here? I'm pullin my hair out.