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.
Sets the effect's absolute Z position (height).
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)
- return type
- Source code
native BlzSetSpecialEffectZ takes effect whichEffect, real z returns nothing