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

doodad art variation

Status
Not open for further replies.
i have a doodad w 5 art variations i was wondering if i could change which art variation it is using through triggers ? if not is there a way to remove and place doodads w triggers ? ik i can do it w units i was just hoping i could do it by changing the art for the doodad unless u can do it w one item tht would work to ? im open to suggestions and thx for all ur help
 
Last edited:
Level 26
Joined
Aug 18, 2009
Messages
4,097
The only jass functions for doodads are

native SetDoodadAnimation takes real x, real y, real radius, integer doodadID, boolean nearestOnly, string animName, boolean animRandom returns nothing

and

native SetDoodadAnimationRect takes rect r, integer doodadID, string animName, boolean animRandom returns nothing

You cannot change the variation nor replace them. You can create/remove items or destructables.
 
Level 16
Joined
Mar 3, 2006
Messages
1,564
ooo what r the commands to show / hide doodads ? and thx a lot for ur help


call SetDoodadAnimationRectBJ( "hide", 'YOcp', GetPlayableMapRect() )

native version:

call SetDoodadAnimationRect(bj_mapInitialPlayableArea, 'YOcp', "hide", false)

or

call SetDoodadAnimation(32, 128, 16, 'YOcp', false, "hide", false)
 
Last edited:
Status
Not open for further replies.
Top