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'
What I was thinking was to allow you to build pseudo platforms for your units where you wanted. The way I was thinking about doing this is allowing units to move freely while on the platforms by making them flying units. I'd place some ground blockers on the platform to prevent ground units running through them, and air blockers surrounding the platform to keep the units up there.
I don't care if you need to move the unit onto the platform using triggers or not, it's just the pathing I need help with. What would be the best way to edit it so I could change the pathing on demand?
I'd do this with two overlapping regions. With one ordering the units back with a move if they attempt to enter, which isnt' significantly different from how the game handles no pathing zones.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
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'
What I was thinking was to allow you to build pseudo platforms for your units where you wanted. The way I was thinking about doing this is allowing units to move freely while on the platforms by making them flying units. I'd place some ground blockers on the platform to prevent ground units running through them, and air blockers surrounding the platform to keep the units up there.
I don't care if you need to move the unit onto the platform using triggers or not, it's just the pathing I need help with. What would be the best way to edit it so I could change the pathing on demand?
Could some one help me with this?
I'd do this with two overlapping regions. With one ordering the units back with a move if they attempt to enter, which isnt' significantly different from how the game handles no pathing zones.