• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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