- Joined
- Nov 3, 2013
- Messages
- 989
Is there some simple way to just turn pre-placed rects in the world editor into regions?
Or a proper event response for rects like
I'm not using vJass so I can't declare globals without GUI
Also, the
So what I think I want is to make global region variables for the pre-placed rects (unless there's some event for entering a rect, but it doesn't seem like it), but I can't do it without vJass?
Basically I'm having the same problem as this: [code=jass] - Detecting Entered Region
Edit: Maybe I can make my own event or something? And while I can't make globals in jass I can use that other thing that run at the beginning, which is pretty much globals, but not??? x) Maybe it's going to be simple later when I'm not as tired...
Or a proper event response for rects like
GetTriggeringRegion()
?I'm not using vJass so I can't declare globals without GUI
Also, the
TriggerRegisterEnterRectSimple()
seems to be a region, but it's local, so I don't think I can reference it... Right? Honestly my head just starts spinning
JASS:
function TriggerRegisterEnterRectSimple takes trigger trig, rect r returns event
local region rectRegion = CreateRegion()
call RegionAddRect(rectRegion, r)
return TriggerRegisterEnterRegion(trig, rectRegion, null)
endfunction
So what I think I want is to make global region variables for the pre-placed rects (unless there's some event for entering a rect, but it doesn't seem like it), but I can't do it without vJass?
Basically I'm having the same problem as this: [code=jass] - Detecting Entered Region
Edit: Maybe I can make my own event or something? And while I can't make globals in jass I can use that other thing that run at the beginning, which is pretty much globals, but not??? x) Maybe it's going to be simple later when I'm not as tired...