Is it possible to create a reigon via triggers?

Accname

2D-Graphics enthusiast
Reaction score
1,462
both this:
Trigger:
  • Set Rect_Variable = (Rect(0.00, 0.00, 0.00, 0.00))

and this:
Trigger:
  • Set Rect_Variable = (Rect((Point(0.00, 0.00)), (Point(0.00, 0.00))))

actions create a new rect with 2 given locations. in the first example it takes only the minX, minY, maxX, maxY values and in the second it takes exactly the same but as locations which leak...
 

Avaleirra

Is back. Probably.
Reaction score
128
You could also create a dummy unit and detect an area around it. This wouldn't be a rectangle though :(
 

jomik

New Member
Reaction score
17
You can also have a dummy region created at the map, and then just move it using the triggers.
 

FoxWizzy

New Member
Reaction score
3
the best way is to use point X,Y
Trigger:
  • Create 1 Footman for Player 1 (red) at (Point(X,Y))
 

D.V.D

Make a wish
Reaction score
73
The problem with locations is that I need it to work on a whole area, not just a small point. And I don't wanna create locations for every position on the map. Also, a dummy reigon would not work because I need many reigons for this to work. And by many, I mean hundreds. Thanks for help and Im sticking to Rects.
 

Accname

2D-Graphics enthusiast
Reaction score
1,462
why dummy regions? this action will create a permanent rect just as if you preplace it with the editor on the map.

[...]
Trigger:
  • Set Rect_Variable = (Rect(0.00, 0.00, 0.00, 0.00))

[...]
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top