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

How to remove or hide doodads in game?

Status
Not open for further replies.
Level 5
Joined
Nov 27, 2007
Messages
85
The closest thing I found:
JASS:
native          RemoveDestructable          takes destructable d returns nothing
native          KillDestructable            takes destructable d returns nothing

Apparently they work for desctructables, not doodads.

My question: Is there a way to hide or remove doodads of a certain type or individually in game?
 
Level 26
Joined
Aug 18, 2009
Messages
4,097
JASS:
native SetDoodadAnimation takes real x, real y, real radius, integer doodadID, boolean nearestOnly, string animName, boolean animRandom returns nothing
native SetDoodadAnimationRect takes rect r, integer doodadID, string animName, boolean animRandom returns nothing

use "hide" as animName.
 
Level 12
Joined
Jan 30, 2009
Messages
1,067
Wait, does this work in GUI as well? This could very well solve a major issue I had encountered.
 
Level 12
Joined
Jan 30, 2009
Messages
1,067
Yeah, I found the corresponding function about ten mins later when I took a peek.

I'm not gonna be messing with my map for the rest of the night (It's a quarter after 11pm where I'm at), so I'll keep it in the back of my head on a notepad document, :p
 
Level 5
Joined
Nov 27, 2007
Messages
85
Ok this way works perfectly.

Now my problem is:
How do I quickly find out the type id of a doodad in Object Editor? I mean the hexademical number (like 'D00A').

EDIT: Ok I found that out, it can be done using GUI actions, then convert to custom code
 
Status
Not open for further replies.
Top