- Joined
- Feb 27, 2009
- Messages
- 115
-A building is placed in a location
.Set Variable to 'Last Created unit'
This doesn't work. Now, this works perfectly when units are spawned.
-Units are placed in a location.
-Set Variable to 'units in region'
Is there a trigger related for buildings? Aren't they considered units as well?
This is what I'm trying to do. I am having units spawn from a building. Simple stuff we have all seen.
-Blah blah conditions
-Units Spawn
The problem is that when the building next to their spawn location is destroyed, I want it to be:
-Oh noes! Building Blew up!
-Units Stop Spawning
The reason why I do not assign a direct building as the variable is because the building changes depending on what race the player is. So there is no initial building at the start of the map. This is why I used the 'unit enters region' or 'last created unit'.
One of the conditions for the units to spawn is that the building exists.
So...
-If Building is alive
-SPAWN SPAWN SPAWN
-If Building is dead
-No spawn for you!
But I have no idea how to get a variable attached to that building (there are more than one so a 'type' wouldn't work. It is location specific.)
Currently, I have this odd situation where, in all cases, spawning ignores the building destruction and, in some cases, units spawn once and stop as if they have decided to ignore the triggers and create their own.
Anyone know a way how to stick a variable to a newly created building so I can 'tag' it in case it blows up?
.Set Variable to 'Last Created unit'
This doesn't work. Now, this works perfectly when units are spawned.
-Units are placed in a location.
-Set Variable to 'units in region'
Is there a trigger related for buildings? Aren't they considered units as well?
This is what I'm trying to do. I am having units spawn from a building. Simple stuff we have all seen.
-Blah blah conditions
-Units Spawn
The problem is that when the building next to their spawn location is destroyed, I want it to be:
-Oh noes! Building Blew up!
-Units Stop Spawning
The reason why I do not assign a direct building as the variable is because the building changes depending on what race the player is. So there is no initial building at the start of the map. This is why I used the 'unit enters region' or 'last created unit'.
One of the conditions for the units to spawn is that the building exists.
So...
-If Building is alive
-SPAWN SPAWN SPAWN
-If Building is dead
-No spawn for you!
But I have no idea how to get a variable attached to that building (there are more than one so a 'type' wouldn't work. It is location specific.)
Currently, I have this odd situation where, in all cases, spawning ignores the building destruction and, in some cases, units spawn once and stop as if they have decided to ignore the triggers and create their own.
Anyone know a way how to stick a variable to a newly created building so I can 'tag' it in case it blows up?