- Joined
- Sep 30, 2012
- Messages
- 205
Similar to asking which item does this hero have in that certain inventory slot..
I would like to how if it is possible to ask if, and which unit this certain unit has in its cargo? At which position it is, isn't really important to me..
I guess you could save the units name in a hash table, when loaded, and store it in the loadings transporter-unit's row, and removing them again when unloaded. So you just have to look at the hash table when asking: which units are in this certain transport.
However is there a direct way of asking this?
_________
Although i think it might get a bit tricky with cargo's that could hold multiple units... Wouldn't know how to do that right away..
... maybe with an intreger that goes up or down if unit is loaded/unloaded and then read number of integer rows or some sort, while saving this integer in yet another row
I would like to how if it is possible to ask if, and which unit this certain unit has in its cargo? At which position it is, isn't really important to me..
I guess you could save the units name in a hash table, when loaded, and store it in the loadings transporter-unit's row, and removing them again when unloaded. So you just have to look at the hash table when asking: which units are in this certain transport.
However is there a direct way of asking this?
_________
Although i think it might get a bit tricky with cargo's that could hold multiple units... Wouldn't know how to do that right away..
... maybe with an intreger that goes up or down if unit is loaded/unloaded and then read number of integer rows or some sort, while saving this integer in yet another row