BlzSetSpecialEffectZ
- Parameters
-
whichEffect effect
z real
- comment
Sets the effect's absolute Z map position (altitude aka height).
- note
Does not apply if the effect is attached to some model's attachment point (remains 0.0).
- 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)
- bug
In versions 1.29-?? it will set the Z coordinate, but reset the X and Y to where it was spawned in. v1.36.2: Works as expected.
- note
See:
BlzSetSpecialEffectPosition
,BlzSetSpecialEffectHeight
- patch
1.29.2.9231
- Source
- common.j
- return type
nothing
- Source code
native BlzSetSpecialEffectZ takes effect whichEffect, real z returns nothing