• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • ✅ The POLL for Hive's Texturing Contest #33 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!

Lightning effect height problem

Status
Not open for further replies.
Level 10
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:
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)
Still the height is too low.

SOLVED by using ZLibrary.
 
Status
Not open for further replies.
Top