• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

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?
 
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.
 
Wait, does this work in GUI as well? This could very well solve a major issue I had encountered.
 
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
 
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.
Back
Top