Xebarsis
New Member
- Reaction score
- 7
In my map, every time you die you respawn on a random point in the playable map area. However, there are four regions I NEVER want a unit to respawn in.
I have some conditions that are supposed to prevent this, but units are still occasionally spawning in the regions and I'm not sure why:
I have some conditions that are supposed to prevent this, but units are still occasionally spawning in the regions and I'm not sure why:
Trigger:
- Spawner
- Events
- Unit - A unit Dies
- Conditions
- Actions
- Set ThePoint = (Random point in (Playable map area))
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- Or - Any (Conditions) are true
- Conditions
- (EastCOP <gen> contains ThePoint) Equal to True
- (WestCOP <gen> contains ThePoint) Equal to True
- (NorthCOP <gen> contains ThePoint) Equal to True
- (SouthCOP <gen> contains ThePoint) Equal to True
- Conditions
- Or - Any (Conditions) are true
- Then - Actions
- Trigger - Run (This trigger) (ignoring conditions)
- Else - Actions
- Unit - Create 1 Peasant for (Owner of (Dying unit)) at ThePoint facing Default building facing degrees
- If - Conditions
- Events