City17
4 years
sets the effect's Z position (height)
Added in: 1.29
Before 1.29 there was no direct way to set a special effect's height. The following trick was used as a workaround:
Added in: 1.29
Before 1.29 there was no direct way to set a special effect's height. The following trick was used as a workaround:
Code (jass) Select
1 // Creates a temporary platform in the air, the special effect will be put on top of it:2 tempDestr = call CreateDestructableZ('OTis', x, y, z, 0, 1, 0)
3 // Effect spawns on top of platform4 call DestroyEffect(AddSpecialEffect(effectPath, x, y))
5 // Remove platform immediately, only the effect will remain visible for its life duration6 call RemoveDestructable(tempDestr)