- Joined
- Feb 17, 2009
- Messages
- 291
So if you've ever played Age of Empires II you probably noticed that garrisoning a unit inside a tower will add a flag to the top of the building.
I am having a difficult time logic-ing my way through how to track when the unit has been unloaded in warcraft 3. There are two ways to unload a unit, by clicking it on the GUI or casting the unload button, and the GUI method is not trackable by triggers as far as I am aware.
Is anyone knowledgable about this sort of thing? The reason it is important is I am adding a sphere (the flag) to the tower when a unit is loaded into transport. That's easy. I am not seeing a good method for taking the flag away for BOTH METHODS of leaving transport.
This will need to work for any number of towers since each tower can hold a single unit and multiple people could have multiple towers with something inside.
These towers also can upgrade and the sphere gets removed naturally when it finishes, so I need a way to track all this stuff in such a way I can easily add the sphere back.
Thanks!!
I am having a difficult time logic-ing my way through how to track when the unit has been unloaded in warcraft 3. There are two ways to unload a unit, by clicking it on the GUI or casting the unload button, and the GUI method is not trackable by triggers as far as I am aware.
Is anyone knowledgable about this sort of thing? The reason it is important is I am adding a sphere (the flag) to the tower when a unit is loaded into transport. That's easy. I am not seeing a good method for taking the flag away for BOTH METHODS of leaving transport.
This will need to work for any number of towers since each tower can hold a single unit and multiple people could have multiple towers with something inside.
These towers also can upgrade and the sphere gets removed naturally when it finishes, so I need a way to track all this stuff in such a way I can easily add the sphere back.
Thanks!!