Son-Guhun / Titan-Land-Lands-of-Plenty

A WC3 sandbox roleplaying map inspired by those that came before.
MIT License
10 stars 0 forks source link

Create ability that hides Doodads #203

Closed Son-Guhun closed 3 years ago

Son-Guhun commented 3 years ago

Doodads can be hidden using SetDoodadAnimationRect and SetDoodadAnimation.

Example:

    call SetDoodadAnimationRect(WorldBounds.world, 'D00C', "hide", false)
    call SetDoodadAnimationRect(WorldBounds.world, 'D02B', "hide", false)
    call SetDoodadAnimationRect(WorldBounds.world, 'D01I', "hide", false)

To get this to work, simply call the function for all used Doodad types, of which there are few in LoP.