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,099
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