BlzSetSpecialEffectZ

Parameters
whichEffect effect
z real
bug

In 1.29 this native is bugged, it will set the Z coordinate, but reset the X and Y to where it was spawned in.

comment

Sets the effect's absolute Z position (height).

note

Before 1.29 there was no direct way to set a special effect's height. The following trick was used as a workaround:

// Creates a temporary platform in the air, the special effect will be put on top of it:
set tempDestr = CreateDestructableZ('OTis', x, y, z, 0, 1, 0)
// Effect spawns on top of platform
call DestroyEffect(AddSpecialEffect(effectPath, x, y))
// Remove platform immediately, only the effect will remain visible for its life duration
call RemoveDestructable(tempDestr)
patch

1.29

return type
nothing
Source code
native BlzSetSpecialEffectZ                        takes effect whichEffect, real z returns nothing
Source
effects.j
wc3modding.com
BlzSetSpecialEffectZ