• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

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