I want to create in my map units that are only able to move if they are currently flying above a certain building, how would I go about creating this?
If it is stationary just put pathing doodads around it. If it's moving just make a region about the size of the building and then make a trigger like this:
Event - Any Unit leaves region <your region>
Actions - Instantly move unit <triggering unit> into <your region>
You could also kill it if you want and create another in that location or something, if it's for a game or something...
Edit: Oh yeah and you have to create another trigger that constantly moves your region to the location of whatever building - that should be fairly straight forward. Just create a trigger and have the event set to 'periodic event' at 0.1 intervals then in the actions use 'move region/point'
If it is stationary just put pathing doodads around it. If it's moving just make a region about the size of the building and then make a trigger like this:
Event - Any Unit leaves region <your region>
Actions - Instantly move unit <triggering unit> into <your region>
You could also kill it if you want and create another in that location or something, if it's for a game or something...
Edit: Oh yeah and you have to create another trigger that constantly moves your region to the location of whatever building - that should be fairly straight forward. Just create a trigger and have the event set to 'periodic event' at 0.1 intervals then in the actions use 'move region/point'