Hi there! I was looking for a way that allow me to create a portal able to teleport every unit who enters to a random zone between 15 to choose, but i don't get it, maybe someone can help me with this problem... Thanks for read! Have a nice day!
You need to represent the locations, where you are teleported by the portal.
This can be done by:
a) Placing regions in map, then at map initialization saving each region into region array.
b) Converting the coordinates of each location into points, saving those points into point array.
Then you make trigger which fires when you are teleported and you choose a random integer number between 1 and 15 and use that random number as an index for the region/point array.