• 🏆 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!

Detect the closest doodat

Status
Not open for further replies.
Level 3
Joined
Aug 28, 2009
Messages
53
Can wold edditor detect the closest doodat?? If you know how pplease tell me if you can. (please no vJass. vJass is the last thing, if it is impossible with gui, then vJass) I wolud love to make a tleleport trigger where you press an arrow key and you move to the closest doodat (invisible).
 
Level 2
Joined
Apr 30, 2010
Messages
14
First of all: If you mean "destructables" and not "doodads", then yes: It can be done.

So you need to do the following:

  • Set ClosestRange=99999999
  • Set ClosestDestr=No destructable
  • Destructable - Pick every destructable in Region/Circle and do:
    • Set Temp_Real=Distance between Destructable and your point/whatever.
    • if Temp_Real < ClosestRange then
      • Set ClosestRange=Temp_Real
      • Set ClosestDestr= Picked Destructable
    • endif
freehanded
 
Level 8
Joined
Jun 26, 2010
Messages
530
If you mean doodads, like props and etc, i'm afraid you can't. But you can create a destructible with your prop model and make it invulnerable.
 
Status
Not open for further replies.
Top