library SpecialEffectZ /* v1.0.0.0
*******************************************************************
*
* Allows you to add a special effect with a Z value.
*
*******************************************************************
*
* function AddSpecialEffectZ takes string model, real x, real y, real z returns effect
*
*******************************************************************/
globals
private destructable platform
private effect zEffect
endglobals
function AddSpecialEffectZ takes string model, real x, real y, real z returns effect
set platform = CreateDestructableZ('OTip', x, y, z, 0, 1, 0)
set zEffect = AddSpecialEffect(model, x, y)
call RemoveDestructable(platform)
return zEffect
endfunction
endlibrary