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:
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.
 
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.
Back
Top