• 🏆 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!

[JASS] Moving a region to Exit/Enterance of a maze generator system

Status
Not open for further replies.
Level 9
Joined
Jul 24, 2007
Messages
308
Converting & getting locations

How can i change this to a loaction (point) that i create region at :

JASS:
call DestroyWall[B](udg_ztemp[7],udg_ztemp[8]-1,udg_ztemp[7],udg_ztemp[8],udg_minX,udg_minY)[/B]

i want a point like this..
JASS:
set udg_POINTTEST = GetDestructableLoc(udg_ztemp[7],udg_ztemp[8]-1,udg_ztemp[7],udg_ztemp[8],udg_minX,udg_minY)
 
Last edited:
Level 11
Joined
Feb 18, 2004
Messages
394
Without fully reading that giant block of code (I don't have 30 minutes to spare), I can firstly say: You can not move a region. You CAN move rects. You will have to create new regions within the area designated the entrance and exit.

I would suggest using vJASS, for the simple purpose of having the .execute() syntax for functions and tossing all that code in to a library or something.
http://wc3campaigns.net/showthread.php?t=90999 JNG WE Hack
http://wc3campaigns.net/vexorian/jasshelpermanual.html vJASS Readme
 
Level 9
Joined
Jul 24, 2007
Messages
308
Its not problem if create the region, i just need a region to be there

p.s. its not actually 30 mins, its only 10 if you read the informations about the code.

edit: i think the answer is with the function GenerateRandomSideBlock but how can i create rect there?
 
Status
Not open for further replies.
Top