More Regions in One Trigger?

Mr.Tutorial

Hard in the Paint.
Reaction score
42
I'm currently working on a map that will require 4 regions around the map, but I'm wondering if there is a way to make the currently killed unit spawn in randomly in a random region.

•Help Appreciated!
•Mr.Tutorial
 

snowtiger

New Member
Reaction score
1
make a variable named region (it's a region array)


init
Events
Map initialization
Conditions
Actions
Set region[0] = Region 000 <gen>
Set region[1] = Region 001 <gen>
Set region[2] = Region 002 <gen>
Set region[3] = Region 003 <gen>


killed

Events
Unit - A unit Dies
Conditions
Actions
Unit - Create 1 (Unit-type of (Dying unit)) for (Owner of (Dying unit)) at (Random point in region[(Random integer number between 0 and 3)]) facing Default building facing degrees
 

Mr.Tutorial

Hard in the Paint.
Reaction score
42
I really spaced out variables... although I'm not great with them anyways.

Thanks
Mr.Tutorial
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top