• 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.

Harvesting from trees and rock chuncks

Status
Not open for further replies.
Level 7
Joined
Jul 29, 2009
Messages
276
I have a worker unit i want to allow only workers to harvest woods and rocks, this is done by hitting a rock/tree until it dies.
the thing i need help with is:

how do i know what type of unit attacked and killed the dooded (so i can limit it only to workers)?
also, is there a way that i can manage the amount of damage the worker inflects to the tree or rock, and only for them, based on items/upgrades he has?
 
Level 7
Joined
Jul 29, 2009
Messages
276
I tried the condition and its not working, i think the "Killing unit" dosnt apllays when the dying thing is a dooded.
 
Level 2
Joined
Aug 15, 2009
Messages
8
Give the workers an attack that only targets debris, then make those units debris, and remove debris targeting for other units. Well, you can use any other targeted as thing you want, that's just what I would do.
 
Status
Not open for further replies.
Top