Jass documentation Database

JASS Documentation Database REFORGED

Results for the query "BlzSetSpecialEffectZ" as a "function"

The search keyword must be a single word (no spaces).

Function BlzSetSpecialEffectZ

Line: 3964
Location: common.j
Constant? no
Type: native
Arguments: effect whichEffect, real z
Returns: nothing


Extra spaces may have been removed from the original file to show the function in a comfortable way.
  1. native BlzSetSpecialEffectZ takes effect whichEffect, real z returns nothing

Information about BlzSetSpecialEffectZ

Information contributed by City17
on February 24, 2022, 05:06:42 PM.
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:
Code: jass
  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 platform
  4. call DestroyEffect(AddSpecialEffect(effectPath, x, y))
  5. // Remove platform immediately, only the effect will remain visible for its life duration
  6. call RemoveDestructable(tempDestr)
Page loaded in 0.0947 seconds.
Vivir aprendiendo.co - A place for learning stuff, in Spanish   Chaos Realm - The world of Game modders and wc3 addicts   Diplo, a gaming community   Power of Corruption, an altered melee featuring Naga and Demon. Play it now!!!   WC3JASS.com - The JASS Vault + vJASS and Zinc   Jetcraft - A Starcraft II mod   WormTastic Clan (wTc)   Warcraft RESOURCES Reforged: Modelos, mapas, proyectos y mas...