• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

global region (not rect)

Status
Not open for further replies.
Level 7
Joined
Jul 18, 2009
Messages
272
Hi guyz

All I'm trying to do is to define a global region, add some rects to this region, and use it in a couple of triggers.
I just can't get it to work. :(

I added this to my mapheader:
JASS:
globals
    region walls = CreateRegion()
endglobals
(Only works with JassHelper, though. Any way to create global variables without Jasshelper?)

But when I try to use this variable, the game just crashes:
JASS:
call RegionAddRect( walls, gg_rct_Gebiet_001 ) // = Crash :/

What am I doing wrong?

Ok, problem solved. Got the answer on The Helper.
 
Last edited:
Status
Not open for further replies.
Top