• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Choping Trees and lumber as a item

Status
Not open for further replies.
Level 7
Joined
Jul 29, 2009
Messages
276
ive seen it done in some (protected) map:
your worker hits a tree servel times, when the tree is dead there is a lumber item in his place. how do you do that?
 
  • Trigger
  • Events
    • Destructible - Destructible within (Playable Map Area) dies
  • Conditions
    • (Destructible-type of (Dying destructible)) Equal to Summer Tree Wall (or any tree-type destructible you have in your map)
  • Actions
    • Set Point1 = (Position of (Dying destructible))
    • Item - Create Bundle of Lumber at Point1
    • Custom script: call RemoveLocation (udg_Point1)
 
Level 7
Joined
Jul 29, 2009
Messages
276
and how do i do that the worker wont get any normal lumber in his hand (and optinaly making him killing the tree faster than usual)?
 
Well, don't use the Peasant/Peon/Ghoul/Mur'gul Slave model :p
The lumber obtained shows up, because those 4 models have a stand animation with lumber attached on their hands. If you use any model but that, you'll get what you want.
To make harvesting faster, go to the tree you want in the Object Editor, Destructibles tab and scroll to Stats - Hit Points, set it to 5.00 for example or go to Abilities tab, search for "Harvest" and Data - Damage to Tree -> Increase damage dealt. So, if the tree has 5.00 hit points and the damage dealt is 5, the tree will fall in 1 attack.
 
Status
Not open for further replies.
Top