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

doodad art variation

Status
Not open for further replies.
Level 29
Joined
Oct 24, 2012
Messages
6,543
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