Your use of triggering regions, player, etc are incorrect. In the event you HAVE to set which specific regions is being entered as triggering regions does not tell which regions activated the trigger (ie what if you had another region completely unrelated to these sets). Triggering player should also be owner of triggering unit too within the condition. You also may not need to save the points if there are placed a simple as the center of the regions or something else consistent.
When I want your opinion...I'll give it to you!
ElBushido Regular ShmoeI want to make a region where if a unit leaves it, it respawn in the same region.
I have 8 regions set up and 8 points in the center of each region. I made a variable "builders area" and added the 8 regions to it and made another variable "builder spawn points" and added the points to it in map init:
BuilderSpawn Points
Variable - Set Builder Spawn Point[1] = BSpawn 1 LT
Variable - Set Builder Spawn Point[2] = BSpawn 2 LT
Variable - Set Builder Spawn Point[3] = BSpawn 3 LT
Variable - Set Builder Spawn Point[4] = BSpawn 4 LT
Variable - Set Builder Spawn Point[5] = BSpawn 1 RT
Variable - Set Builder Spawn Point[6] = BSpawn 2 RT
Variable - Set Builder Spawn Point[7] = BSPawn 3 RT
Variable - Set Builder Spawn Point[8] = BSpawn 4 RT
Build Regions
Variable - Set Build Region[1] = Build area 1 LT
Variable - Set Build Region[2] = Build area 2 LT
Variable - Set Build Region[3] = Build area 3 LT
Variable - Set Build Region[4] = Build area 4 LT
Variable - Set Build Region[5] = Build area 1 RT
Variable - Set Build Region[6] = Build area 2 RT
Variable - Set Build Region[7] = Build area 3 RT
Variable - Set Build Region[8] = Build area 4 RT
I set up this trigger:
Events
Unit - Any Unit Leaves (Triggering region)
Local Variables
Conditions
(Triggering region) == Build Region[(Triggering player)]
Actions
Unit - Remove (Triggering unit) from the game
Unit - Create 1 (Unit type of (Triggering unit)) for player (Owner of (Triggering unit)) at Builder Spawn Point[(Triggering player)] using default facing (No Options)
It seems obvious to me but not for the game for some reason.
Can any1 tell me what did i do wrong here?