- Joined
- Jun 6, 2007
- Messages
- 392
[SOLVED] Lightning effect height problem
I'm creating a triggered life drain spell. Everything else works, but I'd like the lightning to be displayed correctly also when the spell is cast on flying units. So I do the following:
Still the height is too low.
SOLVED by using ZLibrary.
I'm creating a triggered life drain spell. Everything else works, but I'd like the lightning to be displayed correctly also when the spell is cast on flying units. So I do the following:
JASS:
set casterX = GetUnitX(this.caster)
set targetX = GetUnitX(this.target)
set casterY = GetUnitY(this.caster)
set targetY = GetUnitY(this.target)
set casterZ = GetUnitFlyHeight(this.caster)
set targetZ = GetUnitFlyHeight(this.target)
call MoveLightningEx(this.light, true, casterX, casterY, casterZ, targetX, targetY, targetZ)
SOLVED by using ZLibrary.