- Joined
- Feb 2, 2006
- Messages
- 1,573
Hey,
I would like to detect unload events and check how many units are loaded in a transporter.
I know that there is a load event and a function to check if a unit is loaded into another.
However, there is no unload event.
Hence, I have started writing my own system which stores the group of loaded units per transporter in a hashtable.
However, the "unload" order event does not work. There is an "unloadall" order event but it is issued before as point event. Maybe the "unload" event has no target point but is an immediate order? and I am not sure what to do when the transporter dies. If it dies over ground the loaded units will be dropped and get some stun buff. If it dies over water, they loaded units will die? But for ships they always die?
Is there already any system which I could use and if not, do you have answers for my questions?
I would like to detect unload events and check how many units are loaded in a transporter.
I know that there is a load event and a function to check if a unit is loaded into another.
However, there is no unload event.
Hence, I have started writing my own system which stores the group of loaded units per transporter in a hashtable.
However, the "unload" order event does not work. There is an "unloadall" order event but it is issued before as point event. Maybe the "unload" event has no target point but is an immediate order? and I am not sure what to do when the transporter dies. If it dies over ground the loaded units will be dropped and get some stun buff. If it dies over water, they loaded units will die? But for ships they always die?
Is there already any system which I could use and if not, do you have answers for my questions?
Last edited: