Warcraft III resources & community, 2003–2006 · archived

Peon carrying resources

4 posts
#1

Peon carrying resources

Does anyone know of a way to tell if a peon type unit is carrying gold or lumber?

The only way I can think of is if the peon is issued the order "resumeharvest". This works for peons leaving a gold mine with gold on their back, and for when a peon gathers his max lumber, but not for when the peon only takes a couple swings at a tree and you order him to do something else.

Anyone have any ideas?
Thanks!
#2
Hmm... I don't really know if it is posible. I really don't... Harvest is a single skill, so splitting it to gold and lumber... Sorry, but I have no idea how you could do this. I mean, I have a strategy, but its not solidified yet so I can't help for now.

~Daelin
#3
Sorry, I didn't mean determining if the peon is carrying gold OR lumber, but rather if he is carrying any resources or not.

Ah well, maybe it isn't possible.

Still, any ideas?
Thanks guys!
#4
Well, if you can detect when "unit is issued an order", and issued order equal to harvest. I'm not sure this would work though... Try it!

~Daelin