• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Loaded Unit? Ask for it? (Return)

Status
Not open for further replies.
Level 8
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
 
Status
Not open for further replies.
Top