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

Destroy tree when a certain unit is nearby

Status
Not open for further replies.
Level 7
Joined
Aug 30, 2008
Messages
347
umm try this:

unit enters within range of destructible(not sure about this)
or
unit enters region



event destructible - destroy [tree]

.
 
Level 22
Joined
Feb 4, 2005
Messages
3,971
  • Tree Falls
    • Events
      • Time - Every 0.10 seconds of game time
    • Conditions
    • Actions
      • Destructible - Pick every destructible within 200.00 of (Position of (Random unit from (Units of type Footman))) and do (If ((Destructible-type of (Picked destructible)) Equal to Summer Tree Wall) then do (Destructible - Kill (Picked destructible)) else do (Do nothing))
Change the unit for whatever unit you want, you can use something on the map, paste it for another unit etc. Adjust the within distance if you want only when you come very close.
 
Status
Not open for further replies.
Top