AlExAlExAlEx
Member
- Reaction score
- 7
Hey guys,
I have 10 regions and 10 points(the points are in the middle of the regions). I want to kill any unit in a random region and add a explosion at the point.
Now.. I know that to generate a random number from 1 to 10 I make a variable and set it to a random integer between 1 and 10;
I know how to create explosions point with Environment - Create a x explosion at Point;
but I can not for the life of me figure out how to kill any unit in a random region and add an explosion to the corresponding point. (if region 5 is randomly chosen, explosion must be at point 5)
Any help, please?
I have 10 regions and 10 points(the points are in the middle of the regions). I want to kill any unit in a random region and add a explosion at the point.
Now.. I know that to generate a random number from 1 to 10 I make a variable and set it to a random integer between 1 and 10;
I know how to create explosions point with Environment - Create a x explosion at Point;
but I can not for the life of me figure out how to kill any unit in a random region and add an explosion to the corresponding point. (if region 5 is randomly chosen, explosion must be at point 5)
Any help, please?